From: <no...@so...> - 2000-12-17 13:35:16
|
Bug #122834, was updated on 2000-Nov-18 11:23 Here is a current snapshot of the bug. Project: Jython Category: Core Status: Open Resolution: Later Bug Group: None Priority: 1 Submitted by: bckfnn Assigned to : nobody Summary: import * into locals Details: 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() Follow-Ups: Date: 2000-Dec-17 05:35 By: bckfnn Comment: 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. ------------------------------------------------------- Date: 2000-Dec-06 12:57 By: bckfnn Comment: Fixed in: SimpleCompiler.py revision: 2.11; LocalsCompiler.java revision: 2.5; CodeCompiler.java revision: 2.8; ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=122834&group_id=12867 |