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 vstinner
Recipients brett.cannon, eric.snow, ezio.melotti, michael.foord, ncoghlan, serhiy.storchaka, vstinner
Date 2017-10-03.14:44:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507041848.42.0.213398074469.issue31676@psf.upfronthosting.co.za>
In-reply-to
Content
Attached PR 3871 fixes the side effect in test_imp, but I'm not sure that it's the best fix. Maybe load_source() should use a "transaction" to restore attributes on failure?

load_source() seems to be used imp.reload() for example. Do you expect this function to restore the imported module to its original state on failure?
History
Date User Action Args
2017-10-03 14:44:08vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, ezio.melotti, michael.foord, eric.snow, serhiy.storchaka
2017-10-03 14:44:08vstinnersetmessageid: <1507041848.42.0.213398074469.issue31676@psf.upfronthosting.co.za>
2017-10-03 14:44:08vstinnerlinkissue31676 messages
2017-10-03 14:44:08vstinnercreate