tags:

views:

73

answers:

1

Is it possible to see a memory location/address of data dictionary in python 2.6.4 only??

+1  A: 

In CPython use id function.

Kugel
actually i am not using cpython. there is no way to find out this in python only.?
mukul sharma
Are you sure you're not using CPython? That's the version that most of us use. Other versions like IronPython and Jython don't have memory addresses per se, so your question doesn't make sense if you're not using CPython.
Gabe
@mukul sharma: You aren't using IPython. You aren't using Jython. Please UPDATE your question with the first lines you get when you run "Python only" It will say something like: `Python 2.6.3 (r263:75184, Oct 2 2009, 07:56:03) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin`. Please update the question with information for your version of Python. I think you *are* using CPython; but we need to see the actual response from your actual Python as an update to the question.
S.Lott
This is an implementation detail, and is not to be relied upon. Any code using this would be of questionable design.
gavinb
I am using Python version 2.6.4 on windows os
mukul sharma
@mukul why don't you copy-paste the first lines you get when you run "Python only" , as S.Lott asked? and put details in question not comments
Anurag Uniyal