#8475: Pickling of _python_object_alphabet is broken.
------------------------------+---------------------------------------------
Reporter: hivert | Owner: hivert
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.4
Component: combinatorics | Keywords: pickling nested classes
Author: Florent Hivert | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Thanks to #7448 and #8452, on can trace unpicklable class throughout sage.
Here is one:
{{{
sage: sage: W = Words()
sage: sage: A = W._python_object_alphabet()
sage: TestSuite(A).run(verbose=True)
running ._test_pickling() . . . fail
Traceback (most recent call last):
File
"/mnt/usb1/scratch/hivert/sage-4.3.4.alpha0-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/misc/sage_unittest.py", line 268, in run
test_method(tester = tester)
File
"/mnt/usb1/scratch/hivert/sage-4.3.4.alpha0-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/misc/sage_unittest.py", line 484, in _test_pickling
tester.assertEqual(loads(dumps(self._instance)), self._instance)
File "sage_object.pyx", line 792, in sage.structure.sage_object.dumps
(sage/structure/sage_object.c:8367)
PicklingError: Can't pickle <class
'sage.combinat.words.words._python_object_alphabet'>: attribute lookup
sage.combinat.words.words._python_object_alphabet failed
------------------------------------------------------------
The following tests failed: _test_pickling
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8475>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.