[Ironpython-users] __package__

Slide slide.o.mix at gmail.com
Thu Dec 15 06:02:36 CET 2011


Currently, I am working on implementing zipimport. I have modules being
imported from egg files (very early and not a lot of testing done yet), but
I notice that the __package__ attribute is not getting set up correctly,
e.g.:

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import oauth
>>> dir(oauth)
['__builtins__', '__doc__', '__file__', '__loader__', '__name__',
'__package__',
 '__path__']


IronPython 3.0 DEBUG (3.0.0.0) on .NET 4.0.30319.237
Type "help", "copyright", "credits" or "license" for more information.
>>> import oauth
>>> dir(oauth)
['__builtins__', '__doc__', '__file__', '__loader__', '__name__',
'__path__']


I see in the code that there are references to __package__, but following
where it it set is proving to be a bit difficult. Can someone point me in
the right direction?

Thanks,

slide
Website: http://earl-of-code.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20111214/cc2f2be2/attachment.html>


More information about the Ironpython-users mailing list