Message224

Author bckfnn
Recipients
Date 2000-12-18.22:40:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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'>
>>>

History
Date User Action Args
2008-02-20 17:16:46adminlinkissue226241 messages
2008-02-20 17:16:46admincreate