Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv18807
Modified Files:
PyJavaPackage.java
Log Message:
[Finn]
>Update of /cvsroot/jython/jython/org/python/core
>In directory usw-pr-cvs1:/tmp/cvs-serv11143
>
>Modified Files:
> imp.java
>Log Message:
>fix for bug #426023 from import *: ign __ vs. _ and __all__ .
I think this is a semantic change which causes problems for jythonc.
Type "copyright", "credits" or "license" for more information.
>>> __name__
'__main__'
>>> from java.lang import *
>>> __name__
'java.lang'
>>>
Trying to fix that this way: from jpkg import * will still use the new (better?) semantic
importing _jclass too, OTOH __name__ is no longer in jpkg.__dict__ but just an attr.
-- sP
Index: PyJavaPackage.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/PyJavaPackage.java,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -r2.11 -r2.12
*** PyJavaPackage.java 2001/03/04 18:11:31 2.11
--- PyJavaPackage.java 2001/06/07 20:11:54 2.12
***************
*** 56,60 ****
__dict__ = new PyStringMap();
! __dict__.__setitem__("__name__", new PyString(__name__));
}
--- 56,60 ----
__dict__ = new PyStringMap();
! // __dict__.__setitem__("__name__", new PyString(__name__)); ??
}
|