Message3375

Author colinhevans
Recipients colinhevans
Date 2008-07-31.17:48:47
SpamBayes Score 0.0013015469
Marked as misclassified No
Message-id <1217526527.58.0.708061416394.issue1090@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the setup:

test.jar contents:

ttt/__init__.py
ttt/__init__$py.class

>>> import ttt
<single-top>: ttt= 
*sys-package-mgr*: reading cache, '/Users/colin/dev/test.jar'
import: trying source ./ttt
import: trying precompiled with no source./ttt$py.class
import: trying source entry: ttt/__init__.py from jar/zip file
/Users/colin/dev/test.jar/ttt
import: trying precompiled entry ttt/__init__$py.class from jar/zip file
/Users/colin/dev/test.jar/ttt
>>> dir(ttt)
<single-top>: ttt dir 
['__doc__', '__loader__', '__name__', '__path__']

Note - no error message is returned, but the contents of __init__.py are
not actually imported.  If I omit the __init__$py.class file from the
jar file and only include the source, the module imports correctly.
History
Date User Action Args
2008-07-31 17:48:47colinhevanssetmessageid: <1217526527.58.0.708061416394.issue1090@psf.upfronthosting.co.za>
2008-07-31 17:48:47colinhevanssetrecipients: + colinhevans
2008-07-31 17:48:47colinhevanslinkissue1090 messages
2008-07-31 17:48:47colinhevanscreate