Author sfeltman
Recipients sfeltman
Date 2012-08-16.22:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345156928.79.0.203974969225.issue15715@psf.upfronthosting.co.za>
In-reply-to
Content
This came up while trying to build pygobject with Python 3.3. The problem is there are some erroneous imports in the fromlist with these bindings that can easily be fixed. But it is a behavioral change so I just wanted to raise awareness if it is not already known.

$ python3.2 -c "__import__('http', fromlist=['blah'])"
(works)

$ python3.3 -c "__import__('http', fromlist=['blah'])"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'http.blah'


Note this is also the case when using the C API: PyImport_ImportModuleEx
History
Date User Action Args
2012-08-16 22:42:08sfeltmansetrecipients: + sfeltman
2012-08-16 22:42:08sfeltmansetmessageid: <1345156928.79.0.203974969225.issue15715@psf.upfronthosting.co.za>
2012-08-16 22:42:08sfeltmanlinkissue15715 messages
2012-08-16 22:42:07sfeltmancreate