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 wolma
Recipients brett.cannon, eric.snow, martin.panter, ncoghlan, wolma
Date 2016-07-14.07:27:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A warning like this sounds good to me though I'd prefer it to be slightly more verbose, like:

"RuntimeWarning: '<module>' found in sys.modules after import of package '<package>', but prior to execution of '<module>' as '__main__'; this may result in unpredictable behaviour"

or it wouldn't really have helped me much to understand what was happening.

P.S.: You understood correctly that my own code is fixed (patch sent to the affected user, next release will have the fix). Learnt something about the whole __spec__ and double import subject along the way so it wasn't completely wasted time.
Date User Action Args
2016-07-14 07:27:19wolmasetrecipients: + wolma, brett.cannon, ncoghlan, eric.snow, martin.panter
2016-07-14 07:27:19wolmasetmessageid: <>
2016-07-14 07:27:19wolmalinkissue27487 messages
2016-07-14 07:27:19wolmacreate