Deprecating reload() ???

Michael Hudson mwh at python.net
Mon Mar 15 07:45:13 EST 2004


Skip Montanaro <skip at pobox.com> writes:

> Not so.  del sys.modules['mod']/import mod is effectively what
> reload() does.

It's more like 'exec mod.__file__[:-1] in mod.__dict__", actually.

Cheers,
mwh

-- 
  I don't have any special knowledge of all this. In fact, I made all
  the above up, in the hope that it corresponds to reality.
                                            -- Mark Carroll, ucam.chat



More information about the Python-list mailing list