|
From: <bc...@wo...> - 2000-12-18 21:59:43
|
[Brian Zimmer]
>This is a multi-part message in MIME format.
>
>------_=_NextPart_001_01C06920.5186FCDF
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>I am using the latest CVS code and can no longer import the CPython 2.0
>cgi module:
>
>D:\>jython
>Listening for transport dt_socket at address: 3540
>Jython 2.0alpha2 on java1.3.0 (JIT: null)
>Type "copyright", "credits" or "license" for more information.
>>>> import cgi
>internal compiler error: Name:s1 at line 195
Obviously a bug. It occur because a more stringent fast-locals algorithm
was added in a2 (this fix a bug when "exec" staments assign to a local
and make jython more CPython compatible). The new algorithmt assume that
all locals have been detected correctly where the a1 would use a slower
string based local lookup when in doubt.
The trigger is the local assignments in list comprehension that wasn't
detected correctly. "s1" and "s2" and locals in defining block:
pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
A patch have now been checked into CVS.
regards,
finn
|