Ticket #7475: pickle-explanation

File pickle-explanation, 1.7 KB (added by itaibn, 9 years ago)

An explanation of the pickle

Line 
1pg_generic_factory_unpickle = unpickle_global('sage.structure.factory',
2'generic_factory_unpickle')
3pg_lookup_global = unpickle_global('sage.structure.factory',
4'lookup_global')
5pg_Ideal_pid = unpickle_global('sage.rings.ideal', 'Ideal_pid')
6si1 = unpickle_newobj(pg_Ideal_pid, ())
7pg_dynamic_class = unpickle_global('sage.structure.dynamic_class',
8'dynamic_class')
9pg_IdealMonoid_c = unpickle_global('sage.rings.ideal_monoid',
10'IdealMonoid_c')
11pg_getattr = unpickle_global('__builtin__', 'getattr')
12pg_unreduce = unpickle_global('sage.structure.unique_representation',
13'unreduce')
14pg_Monoids = unpickle_global('sage.categories.monoids', 'Monoids')
15si2 = pg_unreduce(pg_Monoids, (), {})
16si3 = pg_dynamic_class('IdealMonoid_c_with_category', (pg_IdealMonoid_c,
17pg_getattr(si2, 'parent_class')), None, None, pg_IdealMonoid_c)
18si4 = unpickle_newobj(si3, ())
19pg_IntegerRing = unpickle_global('sage.rings.integer_ring',
20'IntegerRing')
21pg = unpickle_instantiate(pg_IntegerRing, ())
22pg_unpickleMethod = unpickle_global('sage.misc.fpickle',
23'unpickleMethod')
24unpickle_build(si4, {'_IdealMonoid_c__R':pg, '_embedding':None,
25'_convert_method_name':None, '_cdata':None, '_category':si2,
26'_names':None, '_generators':{}, '_base':pg, '_pickle_version':1r,
27'_element_constructor':pg_unpickleMethod('_element_constructor_', si4,
28si3), '_initial_convert_list':[], '_element_init_pass_parent':False,
29'_initial_action_list':[], '_initial_coerce_list':[]})
30pg_make_integer = unpickle_global('sage.rings.integer', 'make_integer')
31unpickle_build(si1, (si4, {'_Ideal_generic__ring':pg,
32'_Ideal_generic__gens':(pg_make_integer('2'),)}))
33pg_generic_factory_unpickle(pg_lookup_global('ResidueField'), (4r, 8r),
34(si1, None, None), {})