Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/modular/congroup.py
4054 views
1
###########################################################
2
# Re-bindings for unpickling
3
#
4
# Because we have a large number of pickles which were
5
# created when Gamma0, Gamma1, etc., were still classes
6
# as opposed to functions, we can't unpickle these unless
7
# sage.modular.congroup.Gamma0, etc. are classes. So we
8
# re-bind these as such below -- note that these bindings
9
# are *DIFFERENT* than the bindings for Gamma0, etc. that
10
# get imported in all.py.
11
#
12
# See trac #5059.
13
#
14
###########################################################
15
16
from sage.modular.arithgroup.congroup_gamma0 import Gamma0_class
17
from sage.modular.arithgroup.congroup_gamma1 import Gamma1_class
18
from sage.modular.arithgroup.congroup_gammaH import GammaH_class
19
20
Gamma0 = Gamma0_class
21
Gamma1 = Gamma1_class
22
GammaH = GammaH_class
23
24
# For unpickling.
25
from sage.modular.arithgroup.congroup_gamma0 import Gamma0_constructor
26
from sage.modular.arithgroup.congroup_gamma1 import Gamma1_constructor
27
from sage.modular.arithgroup.congroup_gammaH import GammaH_constructor
28
from sage.modular.arithgroup.congroup_sl2z import SL2Z_class, _SL2Z_ref
29
30