Message229727
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. |
|
Date |
User |
Action |
Args |
2014-10-20 15:02:26 | brett.cannon | set | recipients:
+ brett.cannon, pitrou, vstinner, alexandre.vassalotti, kbengine |
2014-10-20 15:02:26 | brett.cannon | set | messageid: <1413817346.19.0.268652504328.issue22676@psf.upfronthosting.co.za> |
2014-10-20 15:02:26 | brett.cannon | link | issue22676 messages |
2014-10-20 15:02:25 | brett.cannon | create | |
|