[Python-bugs-list] [ python-Bugs-549038 ] cgitb variable dumps a little flaky
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 26 Apr 2002 05:11:11 -0700
Bugs item #549038, was opened at 2002-04-26 13:11
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549038&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Ribbens (jribbens)
Assigned to: Nobody/Anonymous (nobody)
Summary: cgitb variable dumps a little flaky
Initial Comment:
First off, easy problem: lookup() should look in
frame.f_globals["__builtins__"] also. Along the same
lines, I am not sure if lookup works properly with
nested scopes, but since I don't use nested scopes in
any of my code this is not a problem for me ;-)
Secondly, the parsing in scanvars() is somewhat hacky.
For example, given the following line:
foo(open(filename).read())
it will think the following variables exist:
foo
open
filename
).read
Obviously this last one is incorrect. I am not sure if
this is easy to fix or not.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549038&group_id=5470