Author brett.cannon
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan
Date 2013-12-11.14:40:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386772850.53.0.934686698105.issue19944@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not saying get rid of the ability to guarantee no side-effects. All I'm saying is that the point of the function is to find a spec, whether that includes importing or implicitly using a parent package from sys.modules is just technical detail (and thus flags on the function). Put another way, the return value is no different and the basic arguments are the same, it's just internal details of how that return value is found that shifts. For me that's enough to control with keyword-only arguments instead of uniquely named functions.

And I'm willing to argue that import_module() not importing parent packages is annoying and should be controlled with a flag to make life easier since chances are you will want to import the parent packages anyway.
History
Date User Action Args
2013-12-11 14:40:50brett.cannonsetrecipients: + brett.cannon, ncoghlan, Arfrever, eric.snow
2013-12-11 14:40:50brett.cannonsetmessageid: <1386772850.53.0.934686698105.issue19944@psf.upfronthosting.co.za>
2013-12-11 14:40:50brett.cannonlinkissue19944 messages
2013-12-11 14:40:50brett.cannoncreate