Update with pickle
Matteo Dell'Amico
della at toglimi.linux.it
Thu May 27 02:37:55 EDT 2004
Nicolas Fleury wrote:
> I think it is acceptable that this pickle.update function would only
> accept reference of same type and raise an exception otherwise. The
> point of pickle.update would be to not "replace an object with another
> one" but to call __init__ on an existing object.
I still don't understand how exactly you would want it to work. If you
want to call __init__ on an existing object, why don't you just do it
explicitly? Could you post some equivalent code to what you would want
pickle.update to do?
--
Ciao,
Matteo
More information about the Python-list
mailing list