468,511 Members | 1,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

Memory Address' of Python Objects

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
--
It sure is fun to sit around at night, look up at the stars, and think
about billion dollar computers owned by the government that can crack
1024-bit RSA keys in 2 minutes flat. Makes you feel so small...

Jul 18 '05 #1
1 7663
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

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Chris S. | last post: by
3 posts views Thread by James Aguilar | last post: by
14 posts views Thread by Greg Copeland | last post: by
18 posts views Thread by diffuser78 | last post: by
20 posts views Thread by mariano.difelice | last post: by
12 posts views Thread by Simon Berube | last post: by
3 posts views Thread by crazy420fingers | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.