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 eric.snow
Recipients alexandre.vassalotti, brett.cannon, eric.snow, ncoghlan, pitrou, tjb900
Date 2019-02-07.16:39:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Perhaps PyImport_GetModule() should aquire-release the module's lock before the lookup?  This would effectively be a call to _lock_unlock_module() in importlib._bootstrap.

The alternative is to encourage using PyImport_Import() instead, like the PR has done.  In the case the docs for PyImport_GetModule() should make it clear that it is guaranteed that the module is fully imported yet (and recommend using PyImport_Import() for the guarantee).

Either way there should be a new issue for the more general change (and it should reference this issue).
Date User Action Args
2019-02-07 16:39:50eric.snowsetrecipients: + eric.snow, brett.cannon, ncoghlan, pitrou, alexandre.vassalotti, tjb900
2019-02-07 16:39:48eric.snowsetmessageid: <>
2019-02-07 16:39:48eric.snowlinkissue34572 messages
2019-02-07 16:39:48eric.snowcreate