Is it possible to get the Physical memory address of a variable in python?

Ognjen Bezanov Ognjen at mailshack.com
Mon Nov 9 19:47:20 EST 2009


Hello all,

Say I have a python variable:

a = "hello"

Is it possible for me to get the physical address of that variable (i.e. 
where it is in RAM)?

I know that id(a) will give me it's memory address, but the address 
given does not seem to correlate with the physical memory. Is this even 
possible?


Thank you!


Ognjen




More information about the Python-list mailing list