[Import-SIG] PEP 451 (ModuleSpec) round 3

Nick Coghlan ncoghlan at gmail.com
Thu Aug 29 16:02:37 CEST 2013


On 29 August 2013 11:57, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> On Wed, Aug 28, 2013 at 11:22 AM, Brett Cannon <brett at python.org> wrote:
>> Wait, what? You suggest it's the module in the signature but
>> module.__dict__ in the explanation.
>
> That's right.  The module is passed in and then exec_module() does its thing
> with module.__dict__.  Do you think exec_module() should directly take a
> dict instead?

Has to be the module - create_module may have returned a custom type.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Import-SIG mailing list