Message303622
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? |
|
Date |
User |
Action |
Args |
2017-10-03 14:44:08 | vstinner | set | recipients:
+ vstinner, brett.cannon, ncoghlan, ezio.melotti, michael.foord, eric.snow, serhiy.storchaka |
2017-10-03 14:44:08 | vstinner | set | messageid: <1507041848.42.0.213398074469.issue31676@psf.upfronthosting.co.za> |
2017-10-03 14:44:08 | vstinner | link | issue31676 messages |
2017-10-03 14:44:08 | vstinner | create | |
|