Author brett.cannon
Recipients alexandre.vassalotti, brett.cannon, kbengine, pitrou, vstinner
Date 2014-10-20.15:02:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413817346.19.0.268652504328.issue22676@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3.3 the import machinery changed to use importlib. This means the code to create the representation of a module now calls into Python code (the `<frozen importlib._bootstrap>:690(_module_repr)` you're seeing).

But my question is why are you not calling PyObject_HasAttr() before calling PyObject_GetAttr()? Exceptions may be relatively cheap but they are not free.
History
Date User Action Args
2014-10-20 15:02:26brett.cannonsetrecipients: + brett.cannon, pitrou, vstinner, alexandre.vassalotti, kbengine
2014-10-20 15:02:26brett.cannonsetmessageid: <1413817346.19.0.268652504328.issue22676@psf.upfronthosting.co.za>
2014-10-20 15:02:26brett.cannonlinkissue22676 messages
2014-10-20 15:02:25brett.cannoncreate