Changes between Version 2 and Version 3 of Ticket #17957


Ignore:
Timestamp:
03/16/15 17:10:22 (5 years ago)
Author:
nthiery
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17957 – Description

    v2 v3  
    11The class
    22`sage.modules.module_with_basis_morphism.ModuleMorphismFromMatrix`
    3 does not pickle properly. See the comment and example near it's
    4 ``TestSuite`` test.
     3and `TriangularModuleMorphism` with `inverse_on_support="compute"`
     4do not pickle properly. See the comments and examples near their
     5respective ``TestSuite`` test.
    56
    6 One potential route would be to use pickling by construction.
     7A first potential route would be to use pickling by construction for
     8those classes. Another one -- more general -- would be to implement
     9pickling for methods of dictionaries / builtin types:
     10
     11{{{
     12sage: d = {1:2}
     13sage: dumps(d.__getitem__)
     14...
     15TypeError: expected string or Unicode object, NoneType found
     16
     17sage: dumps(dict.__getitem__)
     18...
     19PicklingError: Can't pickle <type 'method_descriptor'>: attribute lookup __builtin__.method_descriptor failed
     20}}}
    721
    822This is a follow up to #8678.