[Python-Dev] [Python-3000] inst_persistent_id (original) (raw)

Armin Rigo arigo at tunes.org
Mon Jan 14 18:59:43 CET 2008


Hi,

On Sat, Jan 12, 2008 at 07:33:38PM -0500, Alexandre Vassalotti wrote:

Well, in Python 3K, instpersistentid() won't be usable, since PyInstanceType was removed.

Looking at the code, inst_persistent_id() is just a confusing name. It has got nothing to do with PyInstance_Type; it's called for any object type that cPickle.c doesn't know how to handle. In fact, it seems that cPickle.c never calls inst_persistent_id() for objects of type PyInstance_Type...

A bientot,

Armin.



More information about the Python-Dev mailing list