Message312756
I was wondering why the error is not raised by the IMPORT_NAME opcode which predates IMPORT_FROM. It calls _handle_fromlist() from _bootstrap. But in this case the module doesn't have the __path__ attribute and the sanity check was skipped.
I'm wondering if it is enough to add the sanity check in _handle_fromlist() for the case when the module doesn't have the __path__ attribute. The Python code could be simpler than the C code. |
|
Date |
User |
Action |
Args |
2018-02-24 21:12:19 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, brett.cannon, ncoghlan, eric.snow, xiang.zhang |
2018-02-24 21:12:19 | serhiy.storchaka | set | messageid: <1519506739.05.0.467229070634.issue32932@psf.upfronthosting.co.za> |
2018-02-24 21:12:19 | serhiy.storchaka | link | issue32932 messages |
2018-02-24 21:12:19 | serhiy.storchaka | create | |
|