|
From: <no...@so...> - 2001-05-27 18:58:41
|
Bugs item #222834, was updated on 2000-11-18 11:23 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=222834&group_id=12867 Category: Core Group: None >Status: Closed Resolution: Later Priority: 1 Submitted By: Finn Bock (bckfnn) Assigned to: Nobody/Anonymous (nobody) Summary: import * into locals Initial Comment: A minor difference between CPython and JPython. Wildcard import into a local namespace does not make the imported names available. def foo(): from stat import * print locals().keys() print ST_MTIME foo() ---------------------------------------------------------------------- >Comment By: Samuele Pedroni (pedronis) Date: 2001-05-27 11:58 Message: Logged In: YES user_id=61408 nested scopes code both in jython and jythonc deals properly with this. ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2000-12-17 05:35 Message: The patch to SimpleCompiler shows some unfortunate side effects. The generated code is correct, but the interpreting part of jythonc fails to lookup a name used in a function in the globals. I'm backing out the patch (only to jythonc) and reopening the bug. ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2000-12-06 12:57 Message: Fixed in: SimpleCompiler.py revision: 2.11; LocalsCompiler.java revision: 2.5; CodeCompiler.java revision: 2.8; ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=222834&group_id=12867 |