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

Chris Angelico rosuav at gmail.com
Mon Jan 23 13:49:06 EST 2017


On Tue, Jan 24, 2017 at 4:49 AM, Sourabh Kalal <kalalsunnyy at gmail.com> wrote:
> how we can access the value from using id..
> like x=10
> id(x)
> 3235346364
>
> how i can read value 10 using id 3235346364

No, you can't. That isn't a memory address - it's just a unique
identifier. Python doesn't have memory addresses.

ChrisA



More information about the Python-list mailing list