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 josh.r
Recipients BreamoreBoy, georg.brandl, josh.r, xdegaye
Date 2015-02-26.00:14:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424909683.72.0.0298213142265.issue20703@psf.upfronthosting.co.za>
In-reply-to
Content
Is this worth fixing? Delve into the innards and you get weird behaviors. If you really need to iterate sys.modules (the example clearly doesn't, but that doesn't mean no one would), you could just copy the parts you need beforehand to get a consistent view, e.g.

for name, mod in tuple(sys.modules.items()):

Lazy module imports aren't always a bad thing if the module in question isn't needed for the common functionality, only specific subsets that may never be used.
History
Date User Action Args
2015-02-26 00:14:43josh.rsetrecipients: + josh.r, georg.brandl, BreamoreBoy, xdegaye
2015-02-26 00:14:43josh.rsetmessageid: <1424909683.72.0.0298213142265.issue20703@psf.upfronthosting.co.za>
2015-02-26 00:14:43josh.rlinkissue20703 messages
2015-02-26 00:14:43josh.rcreate