You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The class
sage.modules.module_with_basis_morphism.ModuleMorphismFromMatrix
and
TriangularModuleMorphism
withinverse_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:
This is a follow up to #8678.
Component: pickling
Issue created by migration from https://trac.sagemath.org/ticket/17957
The text was updated successfully, but these errors were encountered: