who moved reload?
ironfroggy at gmail.com
Tue Apr 19 18:41:16 CEST 2011
I have a great solution : stop using reload. It often dangerous and more
On Apr 7, 2011 5:44 AM, "harrismh777" <harrismh777 at charter.net> wrote:
All right... somebody is sacked (er, fired) !
Who moved reload()?
This kinda stuff is driving me bonkers... there was no need to move reload()
... so for those of you who haven't found out yet, if you want to reload a
module in 3.x you have to import reload() first from module 'imp' ... now
that is just plain wrong. :-}
from imp import reload
reload(mymod) <<===== now reload() will work.
Somebody out there thinks this is funny, right?
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
NameError: name 'reload' is not defined ???????????????????????????
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list