Memory Address' of Python Objects

P

Peter Markowsky

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?

Sincerely,

Pete
 
?

=?ISO-8859-1?Q?Gerhard_H=E4ring?=

Peter said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top