Message224
A difference in module import between CPython and jython.
The example are from the xml.dom package.
==== pack1/__init__.py ====
class Node: Node = 1
==== pack1/Node.py ====
class Node: pass
Jython 2.0alpha2 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> from pack1.Node import Node
>>> print Node, type(Node)
1 org.python.core.PyInteger
>>>
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> from pack1.Node import Node
pack1.Node
>>> print Node, type(Node)
pack1.Node.Node <type 'class'>
>>>
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:46 | admin | link | issue226241 messages |
2008-02-20 17:16:46 | admin | create | |
|