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 <1468481239.44.0.194550280107.issue27487@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-14 07:27:19wolmasetrecipients: + wolma, brett.cannon, ncoghlan, eric.snow, martin.panter
2016-07-14 07:27:19wolmasetmessageid: <1468481239.44.0.194550280107.issue27487@psf.upfronthosting.co.za>
2016-07-14 07:27:19wolmalinkissue27487 messages
2016-07-14 07:27:19wolmacreate