Message315166
| 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 | <1523359735.78.0.682650639539.issue33237@psf.upfronthosting.co.za> |
| 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:55 | ncoghlan | set | recipients: + ncoghlan, brett.cannon, eric.snow, serhiy.storchaka |
| 2018-04-10 11:28:55 | ncoghlan | set | messageid: <1523359735.78.0.682650639539.issue33237@psf.upfronthosting.co.za> |
| 2018-04-10 11:28:55 | ncoghlan | link | issue33237 messages |
| 2018-04-10 11:28:55 | ncoghlan | create | |