Message540
According to Python documentation, if the second
argument is None the value of sys.path should be
used. This fails in Jython.
$ python
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
>>> import imp
>>> m = imp.find_module("re", None)
>>>
$ jython
Jython 2.1b2 on java1.3.1 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import imp
>>> m = imp.find_module("re", None)
Traceback (innermost last):
File "<console>", line 1, in ?
AttributeError: __getitem__
>>>
testcase:
import imp
imp.find_module("re", None)
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:59 | admin | link | issue495604 messages |
2008-02-20 17:16:59 | admin | create | |
|