Re: PEP 451 (ModuleSpec) round 3
Nick Coghlan <[email protected]> Fri, 30 Aug 2013 00:02:37 +1000
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CADiSq7eSk6PWWG6dTVyHzmwR3NhmTUjoAArBOyGq1Cxh3wfdnA@mail.gmail.com> |
On 29 August 2013 11:57, Eric Snow <[email protected]> wrote: > On Wed, Aug 28, 2013 at 11:22 AM, Brett Cannon <[email protected]> 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 | [email protected] | Brisbane, Australia