#207 unpickle failure for xsd:duration

PyXB 1.2.3
closed
None
fixed
Binding model
major
PyXB 1.2.2
defect
2013-09-10
2013-09-10
No

The PyXB duration class gets pickled as its underlying Python datetime.timedelta class, but the wrapper constructor fails to recognize the multiple arguments passed to it causing an exception when reading the value from a pickled file such as a binding archive.

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2013-09-10
    • status changed from new to accepted
    • description modified (diff)
    • summary changed from unpickle failure for xsd:dateTime to unpickle failure for xsd:duration
     
  • Peter A. Bigot

    Peter A. Bigot - 2013-09-10
    • status changed from accepted to closed
    • resolution set to fixed

    Fixed in following commit:

    commit f5da36025e29c179bdab6cc0cfb2846fd3b239d3
    Author: Peter A. Bigot <pab@pabigot.com>
    Date:   Tue Sep 10 11:00:32 2013 -0500
    
        trac/207: unpickle failure for xsd:duration
    
        Recognize multiple arguments and convert them into a dictionary of the
        corresponding Python constructor arguments.
    
    :100644 100644 667e0e0... b30ae74... M  pyxb/binding/datatypes.py
    :000000 100644 0000000... 5935263... A  tests/trac/test-trac-0207.py
    
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks