Execfile() - bug / strange behavior

Carel Fellinger cfelling at iae.nl
Sat Feb 5 23:06:22 CET 2000

Gordon McMillan <gmcm at hypernet.com> wrote:
> Carel Fellinger wrote:

>> And how then would it pass on the locals dict in this case? According to

> The only reason for using execfile is if you don't know what the 
> file contains. Thus you wouldn't know what names it will 
> introduce. So the only sane way of dealing with it is with an 
> explicit dict. KeyErrors are easier to deal with than 

I stand corrected:( and my love for Python increases
now that even the dark corners appear to be benevolent.
groetjes, carel

More information about the Python-list mailing list