Author Victor.Varvariuc
Recipients Victor.Varvariuc, barry, brett.cannon, eric.snow, gvanrossum, irdb, ncoghlan
Date 2017-04-10.05:29:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491802179.84.0.513231600867.issue30024@psf.upfronthosting.co.za>
In-reply-to
Content
> I'm inclined not to attempt to fix this. The reason that we don't pull 'a.b' out of sys.modules at this point is that if later in the execution of a/b.py we get an exception, the import will be cancelled, and sys.modules['a.b'] will be *deleted*, and then the variable 'c' would have a reference to a half-loaded module.

I think this is solvable -- track and delete the references too.


It's your decision in the end, but I think it's not good to make the language inconsistent because of technical limitations -- the interface should be the primary source for decisions.
History
Date User Action Args
2017-04-10 05:29:39Victor.Varvariucsetrecipients: + Victor.Varvariuc, gvanrossum, barry, brett.cannon, ncoghlan, irdb, eric.snow
2017-04-10 05:29:39Victor.Varvariucsetmessageid: <1491802179.84.0.513231600867.issue30024@psf.upfronthosting.co.za>
2017-04-10 05:29:39Victor.Varvariuclinkissue30024 messages
2017-04-10 05:29:39Victor.Varvariuccreate