id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
13998 hash of a pickled Sequence is broken slabbe slabbe "The following works::
{{{
sage: M = ModularSymbols(1,12,sign=1)
sage: M
Modular Symbols space of dimension 2 for Gamma_0(1) of weight 12 with sign 1 over Rational Field
sage: S = M.cuspidal_submodule().decomposition()[0].free_module().basis()
sage: type(S)
sage: S
[
(1, 0)
]
sage: hash(S)
979268961
}}}
But if you do the same from a certain pickled object, it is broken (tested on sage-4.7 and sage-5.6.rc0)::
{{{
sage: M = load('http://sage.math.washington.edu/home/slabbe/LMFDB/mstest.sobj')
Attempting to load remote file: http://sage.math.washington.edu/home/slabbe/LMFDB/mstest.sobj
Loading: [.]
sage: M
Modular Symbols space of dimension 2 for Gamma_0(1) of weight 12 with sign 1 over Rational Field
sage: S = M.cuspidal_submodule().decomposition()[0].free_module().basis()
sage: type(S)
sage: S
[
(1, 0)
]
sage: hash(S)
Traceback (most recent call last)
...
AttributeError: 'Sequence_generic' object has no attribute '_Sequence_generic__hash'
}}}
This particular problem was reported by LMFDB developper who understands that Sage do not guarrenty that pickled object are supported by later version of Sage. Let's fix this problem !!!
" defect closed major sage-5.7 pickling fixed sage-5.7.beta2 Sébastien Labbé Stephan Ehlen N/A