Message540

Author bzimmer
Recipients
Date 2001-12-20.20:53:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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)
History
Date User Action Args
2008-02-20 17:16:59adminlinkissue495604 messages
2008-02-20 17:16:59admincreate