Printing Varable Names Tool.. Feedback requested.
Ron_Adam
radam2 at tampabay.rr.com
Thu Mar 31 14:13:39 EST 2005
On Thu, 31 Mar 2005 18:37:53 GMT, Ron_Adam <radam2 at tampabay.rr.com>
wrote:
>
>Hi, Sometimes it just helps to see what's going on, so I've been
>trying to write a tool to examine what names are pointing to what
>objects in the current scope.
>
>This still has some glitches, like not working in winpython or the
>command line, I get a 'stack not deep enough' error. I haven't tested
>it on linux yet either. It could be something with my python
>install.(?)
>
Here's the error I'm getting from the python command window.
C:\ron\rondev\pythonmods>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pnames
>>> pnames.pnames()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "pnames.py", line 28, in pnames
name = sys._getframe(n).f_code.co_name
ValueError: call stack is not deep enough
>>>
More information about the Python-list
mailing list