Message315166
The main idea that comes to mind is to cache a reference to `_frozen_importlib._module_locks` in the interpreter state, and do a key lookup in there (since any in-progress import should have a lock allocated to it).
That would be a separate performance issue though - for this issue, we're on an error handling path, so the speed with which the error gets reported isn't critical (although it does technically slow down try/except import fallback chains). |
|
| Date |
User |
Action |
Args |
| 2018-04-10 11:28:55 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, eric.snow, serhiy.storchaka |
| 2018-04-10 11:28:55 | ncoghlan | set | messageid: <[email protected]> |
| 2018-04-10 11:28:55 | ncoghlan | link | issue33237 messages |
| 2018-04-10 11:28:55 | ncoghlan | create | |
|