Message126
A simple import "import foo.bar" is treated diffrently in jpython
and jpythonc. In the interpreter, the toplevel module (foo) is
inserted in the global namespace, in jpythonc the lowest level
module (bar) is inserted.
i:\temp\x2>type x.py
import javax.swing.Icon
print javax
i:\temp\x2>jpython x.py
<java package javax at 5033532>
i:\temp\x2>jpythonc x.py
processing x
Required packages:
javax.swing
Creating adapters:
Creating .java files:
x module
Compiling .java to .class...
Compiling with args: ['I:\\JAVA\\JDK1.3\\bin\\javac', '-classpath',
'I:\\java\\J
Python-1.1rc1\\jpython.jar;i:\\java\\jdk1.3\\jre\\lib\\rt.jar;i:\\java\\JPython-
1.1rc1;i:\\java\\JPython-1.1rc1\\jpython.jar;d:\\java\\javaCC\\JavaCC.zip;e:\\or
ant\\jdbc\\lib\\classes111.zip;d:\\java\\jce-aba-1.0\\lib-1.2\\jce.zip;d:\\java\
\jasmine;d:\\java\\xml4j\\xml4j.jar;.', '.\\jpywork\\x.java']
0 Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
i:\temp\x2>cd jpywork
i:\temp\x2\jpywork>java x
javax.swing.Icon
i:\temp\x2\jpywork>jpython
JPython 1.1rc1 on java1.3beta (JIT: null)
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> ^Z
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:41 | admin | link | issue222840 messages |
2008-02-20 17:16:41 | admin | create | |
|