Stringify object reference?
sismex01 at hebmex.com
sismex01 at hebmex.com
Fri Oct 11 13:22:17 EDT 2002
> From: Alan Kennedy [mailto:alanmk at hotmail.com]
>
> Is there a specific reason why id()'s can't be turned back
> into objects? Is it an implementation specific thing? Or is
> it to stop people messing with pointers, etc?
>
> Regards,
>
> alan kennedy
It's an implementation-specific thing to stop people from messing
with pointers. ;-)
Seriously tho.. Using a dict indexed by id(obj) seems to be the
best solution for your particular use.
Salutations.
-gustavo
More information about the Python-list
mailing list