Changes between Version 2 and Version 3 of Ticket #28444, comment 58


Ignore:
Timestamp:
09/06/19 06:57:36 (2 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28444, comment 58

    v2 v3  
    22> Why try to make `encoding='bytes'` work in so many places?
    33
    4 Because an important datatype, namely numpy arrays with datetime objects, apparently can only be unpickled using `encoding='bytes'`. And of course, a numpy array can be part of a larger structure that also comprises further Sage objects.
     4Because an important datatype, namely numpy arrays with datetime objects, apparently can only be unpickled using `encoding='bytes'`. And of course, a numpy array can be part of a larger structure that also comprises further Sage objects. Therefore it makes sense that these can be unpickled with `encoding='bytes'`, too.
    55
    66> So the unpickling routines must be made more tolerant and accept a str where it expects a bytes object. But preferably only the unpickling routines!