Memory Address' of Python Objects
Gerhard Häring
gh at ghaering.de
Sun Jun 29 18:49:20 EDT 2003
Peter Markowsky wrote:
> Hi all,
>
> I've been searching through the Python Essential Reference, and
> python.org but I can't seem to find a way to get the memory address
> for an object in python. Please help. How do you get the address of an
> object in memory?
id(obj)
What do you intend to do with this information? If you want to use this
to manipulate the object from outside Python, it's almost certainly the
wrong way of doing it.
-- Gerhard
More information about the Python-list
mailing list