New submission from Christof <cthedot@...>:
(I try to run web.py with Jython 2.5rc2 but have 2 problems (the other
with socket I'll put as another issue).)
I use the basic example on http://webpy.org/ (folder web with the source
is in on the path). After starting the server and doing a first request
I get a stack trace in the browser and on the command line. It seems
somehow the Lib/compiler/transformer.py module in line 125, 130 and 134
uses the a global "parser" which is not defined nor imported (only for
CPython).
The complete stack trace in the browser is:
Traceback (most recent call last):
File "I:\dev-a-workspace\dev\jywebpy\web\wsgiserver\__init__.py", line
1174, in communicate
req.respond()
File "I:\dev-a-workspace\dev\jywebpy\web\wsgiserver\__init__.py", line
544, in respond
self._respond()
File "I:\dev-a-workspace\dev\jywebpy\web\wsgiserver\__init__.py", line
544, in respond
self._respond()
File "I:\dev-a-workspace\dev\jywebpy\web\wsgiserver\__init__.py", line
556, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File "I:\dev-a-workspace\dev\jywebpy\web\httpserver.py", line 201, in
__call__
return self.app(environ, xstart_response)
File "I:\dev-a-workspace\dev\jywebpy\web\application.py", line 250, in
wsgi
result = self.handle_with_processors()
File "I:\dev-a-workspace\dev\jywebpy\web\application.py", line 250, in
wsgi
result = self.handle_with_processors()
File "I:\dev-a-workspace\dev\jywebpy\web\application.py", line 220, in
handle_with_processors
return process(self.processors)
File "I:\dev-a-workspace\dev\jywebpy\web\application.py", line 216, in
process
raise self.internalerror()
File "I:\dev-a-workspace\dev\jywebpy\web\application.py", line 449, in
internalerror
return debugerror.debugerror()
File "I:\dev-a-workspace\dev\jywebpy\web\debugerror.py", line 299, in
debugerror
return web._InternalError(djangoerror())
File "I:\dev-a-workspace\dev\jywebpy\web\debugerror.py", line 284, in
djangoerror
djangoerror_r = Template(djangoerror_t, filename=__file__,
filter=websafe)
File "I:\dev-a-workspace\dev\jywebpy\web\template.py", line 832, in
__init__
code = self.compile_template(text, filename)
File "I:\dev-a-workspace\dev\jywebpy\web\template.py", line 886, in
compile_template
ast = compiler.parse(code)
File "I:\program\jython2.5rc2\Lib\compiler\transformer.py", line 53,
in parse
return Transformer().parsesuite(buf)
File "I:\program\jython2.5rc2\Lib\compiler\transformer.py", line 130,
in parsesuite
"""Return a modified parse tree for the given suite text."""
NameError: global name 'parser' is not defined
----------
components: Library
messages: 4680
nosy: Christof
severity: normal
status: open
title: compiler.transformer uses parser which is not defined
versions: 2.5b1
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1346&gt;
_______________________________________

New submission from Rasjid <rasjidw@...>:
The following works under CPython, not under Jython:
from threading import Thread
t = Thread(name = 1)
In CPython the name is changed to a string where Jython raises an
exception. This is still true for 2.5rc2.
----------
components: Library
messages: 4677
nosy: rasjidw
severity: normal
status: open
title: setName semantics of threading.Thread different to CPython
type: behaviour
versions: 25b3
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1344&gt;
_______________________________________