Memory Address' of Python Objects

Discussion in 'Python' started by Peter Markowsky, Jun 29, 2003.

  1. 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...
    Peter Markowsky, Jun 29, 2003
    #1
    1. Advertising

  2. 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
    =?ISO-8859-1?Q?Gerhard_H=E4ring?=, Jun 29, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. avnrao
    Replies:
    1
    Views:
    7,219
    avnrao
    May 4, 2004
  2. Patrice
    Replies:
    0
    Views:
    881
    Patrice
    May 4, 2004
  3. Raterus
    Replies:
    0
    Views:
    432
    Raterus
    Jun 2, 2004
  4. Alex Stevens
    Replies:
    0
    Views:
    775
    Alex Stevens
    Aug 10, 2004
  5. 7stud
    Replies:
    11
    Views:
    684
    Dennis Lee Bieber
    Mar 20, 2007
Loading...

Share This Page