Changes between Initial Version and Version 1 of Ticket #5222, comment 4


Ignore:
Timestamp:
Sep 14, 2021, 3:56:34 PM (4 years ago)
Author:
Greg Couch

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5222, comment 4

    initial v1  
    11It would convenient, but no.  The classes exported by a bundle via get_class have to be supported forever or else sessions can not restore.  That needs to be an explicit API decision by the bundle writer, not automatically inferred.
    22
    3 And in the case of named tuples, I'd recommend not putting them in get_class.  The more the session data can be make of just primitive data, the better.  If there are no objects in the saved state data, then the FinalizedState hack can be used to speed up the saving and restoring of data because the data does not need to be scanned, and copied, to handle objects.
     3And in the case of named tuples, I'd recommend not putting them in get_class.  The more the session data can be make of just primitive data, the better.  If there are no objects in the saved state data, then the !FinalizedState hack can be used to speed up the saving and restoring of data because the data does not need to be scanned, and copied, to handle objects.