#10962: Set_PythonType objects are not picklable
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner: was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.5
Component: pickling | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/10962 | 4b5c3732a910b99b8f43b5b4eb0da13c8f1c7f27
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
Comment:
{{{
sage -t --long src/sage/symbolic/maxima_wrapper.py
**********************************************************************
File "src/sage/symbolic/maxima_wrapper.py", line 113, in
sage.symbolic.maxima_wrapper.MaximaWrapper._symbolic_
Failed example:
SR(u) is t # indirect doctest
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 488, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 850, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.symbolic.maxima_wrapper.MaximaWrapper._symbolic_[2]>", line 1, in
<module>
SR(u) is t # indirect doctest
File "sage/structure/parent.pyx", line 1104, in
sage.structure.parent.Parent.__call__
(build/cythonized/sage/structure/parent.c:9585)
mor = <map.Map> self._internal_convert_map_from(R)
File "sage/structure/parent.pyx", line 2583, in
sage.structure.parent.Parent._internal_convert_map_from
(build/cythonized/sage/structure/parent.c:19460)
mor = self.discover_convert_map_from(S)
File "sage/structure/parent.pyx", line 2632, in
sage.structure.parent.Parent.discover_convert_map_from
(build/cythonized/sage/structure/parent.c:20119)
mor = self._generic_convert_map(S)
File "sage/structure/parent_old.pyx", line 534, in
sage.structure.parent_old.Parent._generic_convert_map
(build/cythonized/sage/structure/parent_old.c:8211)
return parent.Parent._generic_convert_map(self, S)
File "sage/structure/parent.pyx", line 2142, in
sage.structure.parent.Parent._generic_convert_map
(build/cythonized/sage/structure/parent.c:16530)
return coerce_maps.DefaultConvertMap_unique(S, self)
File "sage/structure/coerce_maps.pyx", line 39, in
sage.structure.coerce_maps.DefaultConvertMap.__init__
(build/cythonized/sage/structure/coerce_maps.c:2712)
domain = Set_PythonType(domain)
File "sage/structure/parent.pyx", line 2996, in
sage.structure.parent.Set_PythonType
(build/cythonized/sage/structure/parent.c:24328)
cpdef Parent Set_PythonType(theType):
File "sage/structure/parent.pyx", line 3027, in
sage.structure.parent.Set_PythonType
(build/cythonized/sage/structure/parent.c:24237)
_type_set_cache[theType] = theSet = Set_PythonType_class(theType)
File "sage/structure/parent.pyx", line 3061, in
sage.structure.parent.Set_PythonType_class.__init__
(build/cythonized/sage/structure/parent.c:24455)
raise TypeError("must be intialized with a type, not %r" %
theType)
TypeError: must be intialized with a type, not parent(log(sqrt(2) + 1)
+ log(sqrt(2) - 1))
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/10962#comment:19>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.