This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2018-04-10.11:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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).
History
Date User Action Args
2018-04-10 11:28:55ncoghlansetrecipients: + ncoghlan, brett.cannon, eric.snow, serhiy.storchaka
2018-04-10 11:28:55ncoghlansetmessageid: <[email protected]>
2018-04-10 11:28:55ncoghlanlinkissue33237 messages
2018-04-10 11:28:55ncoghlancreate