Update with pickle
Nicolas Fleury
nid_oizo at yahoo.com_remove_the_
Tue May 25 17:48:00 EDT 2004
Leif K-Brooks wrote:
> Nicolas Fleury wrote:
>
>> I want to update the content of an object with a dumped object of the
>> same type so that all reference to existing object are still valid.
>
> Add interfaces to your object's class for mutability rather than using a
> low-level hack. Something like this (untested):
Thx for your answer, but according to what I read about __slots__, this
feature has never been intended to be used that way either, so it's also
a kinda low-level hack, no? It is still an interesting solution.
Regards,
Nicolas
More information about the Python-list
mailing list