From: <no...@so...> - 2000-12-23 00:30:39
|
Bug #126241, was updated on 2000-Dec-18 14:40 Here is a current snapshot of the bug. Project: Jython Category: Core Status: Closed Resolution: Fixed Bug Group: None Priority: 5 Submitted by: bckfnn Assigned to : pedronis Summary: Import fails to find submodule Details: 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'> >>> Follow-Ups: Date: 2000-Dec-22 16:30 By: pedronis Comment: Fixed with other import related bugs. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=126241&group_id=12867 |