[Python-bugs-list] [Bug #132820] Nested scopes have problems in -O mode

noreply@sourceforge.net noreply@sourceforge.net
Sat, 17 Feb 2001 06:13:09 -0800


Bug #132820, was updated on 2001-Feb-17 06:12
Here is a current snapshot of the bug.

Project: Python
Category: Parser/Compiler
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: lemburg
Assigned to : jhylton
Summary: Nested scopes have problems in -O mode

Details: I've just gotten a report by a beta tester of my eGenix
mx-Extensions which sounds like a bug in the compiler.

Here's the URL to the distutils installer which reproduces the
problem when byte-code compiling the file
mx/Tools/mxTools/test.py 

http://www.lemburg.com/python/egenix-mx-base-1.0.0.zip

As it turns out, the compiler error only occurrs when you compile
test.py in optimized mode:

...
byte-compiling
/usr/local/lib/python2.1/site-packages/mx/Tools/mxTools/test.py to
test.pyc
...
byte-compiling
/usr/local/lib/python2.1/site-packages/mx/Tools/mxTools/test.py to
test.pyo
Fatal Python error: unknown scope for a in testkw(2) in
/usr/local/lib/python2.1/site-packages/mx/Tools/mxTools/test.py



Follow-Ups:

Date: 2001-Feb-17 06:13
By: lemburg

Comment:
Assigning this to Jeremy, since he knows this code best.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=132820&group_id=5470