[Import-SIG] PEP 489: Multi-phase extension module initialization; version 5
encukou at gmail.com
Thu May 21 10:21:03 CEST 2015
On Wed, May 20, 2015 at 4:07 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> On Wed, May 20, 2015 at 2:37 AM, Petr Viktorin <pviktori at redhat.com> wrote:
>> On 05/20/2015 02:33 AM, Eric Snow wrote:
>>> Won't frozen modules be likewise affected?
>> No, frozen modules are Python source, just not loaded from a file.
> Isn't the mechanism similar to builtins?
No. FrozenImporter loads bytecode from a compiled-in marshalled
string, and then exec() it. It's completely different.
> Regardless, I was hopeful that we could fix FrozenImporter at the same time
> that we fixed BuiltinImporter.
I'm not sure what's to fix in FrozenImporter (it uses
create_module/exec_module already, is there something else?), but I
doubt this PEP is the right place.
More information about the Import-SIG