Message294281
Ok, thanks for the reply. Actually the thing that bothered me was the AttributeError exception. I would probably not have opened a ticket should find_spec have raised a ModuleNotFoundError (in line with import_module).
Would you consider catching the AttributeError (which means detecting if parent_name relates to a package) to raise a ModuleNotFoundError instead more appropriate? |
|
| Date |
User |
Action |
Args |
| 2017-05-23 20:07:37 | tkhyn | set | recipients:
+ tkhyn, brett.cannon, ncoghlan, eric.snow |
| 2017-05-23 20:07:37 | tkhyn | set | messageid: <[email protected]> |
| 2017-05-23 20:07:37 | tkhyn | link | issue30436 messages |
| 2017-05-23 20:07:37 | tkhyn | create | |
|