Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pickling for morphisms of modules with basis defined by a matrix #17957

Open
nthiery opened this issue Mar 14, 2015 · 3 comments
Open

Pickling for morphisms of modules with basis defined by a matrix #17957

nthiery opened this issue Mar 14, 2015 · 3 comments

Comments

@nthiery
Copy link
Contributor

nthiery commented Mar 14, 2015

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.

Component: pickling

Issue created by migration from https://trac.sagemath.org/ticket/17957

@nthiery nthiery added this to the sage-6.6 milestone Mar 14, 2015
@nthiery

This comment has been minimized.

@nthiery

This comment has been minimized.

@nthiery nthiery changed the title Pickling for morphisms of modules with basis Pickling for morphisms of modules with basis defined by a matrix Mar 14, 2015
@nthiery

This comment has been minimized.

@mkoeppe mkoeppe removed this from the sage-6.6 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants