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

Ognjen Bezanov Ognjen at
Tue Nov 10 01:47:20 CET 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 

Thank you!


More information about the Python-list mailing list