#17957: Pickling for morphisms of modules with basis defined by a matrix
----------------------------+------------------------
Reporter: nthiery | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: pickling | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Description changed by nthiery:
Old description:
> The class
> `sage.modules.module_with_basis_morphism.ModuleMorphismFromMatrix`
> does not pickle properly. See the comment and example near it's
> ``TestSuite`` test.
>
> One potential route would be to use pickling by construction.
>
> This is a follow up to #8678.
New description:
The class
`sage.modules.module_with_basis_morphism.ModuleMorphismFromMatrix`
and `TriangularModuleMorphism` with `inverse_on_support="compute"`
do not pickle properly. See the comments and examples near their
respective ``TestSuite`` test.
A first potential route would be to use pickling by construction for
those classes. Another one -- more general -- would be to implement
pickling for methods of dictionaries / builtin types:
{{{
sage: d = {1:2}
sage: dumps(d.__getitem__)
...
TypeError: expected string or Unicode object, NoneType found
sage: dumps(dict.__getitem__)
...
PicklingError: Can't pickle <type 'method_descriptor'>: attribute lookup
__builtin__.method_descriptor failed
}}}
This is a follow up to #8678.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/17957#comment:3>
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.