Life's better without builtins? (was: Life's better without braces)

Niels Diepeveen niels at endea.demon.nl
Fri Feb 25 18:47:18 CET 2000


Michael Hudson schreef:
> 
> Think module.__file__ & exec for reload.  Something like
> 
> def reload(module):
>     exec open(module.__file__[:-1]).read() in module.__dict__
>     return module

That seems a perfect replacement. (except for the [:-1]?) So, only a few
more hurdles before the release of PPython;-)

-- 
Niels Diepeveen
Endea automatisering




More information about the Python-list mailing list