[Python-Dev] Fix import errors to have data

Tim Peters tim.peters at gmail.com
Tue Aug 3 05:27:59 CEST 2004


[Phillip J. Eby]
> It's worse than that...  'ihooks' and 'imputil', for example, both do:
> 
>     exec code in module.__dict__
> 
> so they'd need to be changed to support this fix as well.  (Not to mention
> any third-party import hooks...)

Ouch.  For that matter, they also avoid the "choke point" Sunday
night's patch relied on.  So there are actually no choke points for
any part of the import process now.  Maybe after each bytecode we
could make the eval loop look to see whether sys.modules had been
changed <wink>.


More information about the Python-Dev mailing list