[Python-Dev] [Python-3000] inst_persistent_id

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, inst_persistent_id() won't be usable, since
> PyInstance_Type 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