Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2747
| From | harrismh777 <harrismh777@charter.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | who moved reload? |
| Message-ID | <Obcnp.2676$Ot6.788@newsfe15.iad> (permalink) |
| Date | 2011-04-07 00:45 -0500 |
All right... somebody is sacked (er, fired) !
Who moved reload()?
This kinda stuff is driving me bonkers... there was no need to move
reload() anyplace...
... 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. :-}
import mymod
from imp import reload
reload(mymod) <<===== now reload() will work.
Somebody out there thinks this is funny, right?
>>> reload(mymod)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
reload(mymod)
NameError: name 'reload' is not defined ???????????????????????????
>>>
regards,
m harris
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
who moved reload? harrismh777 <harrismh777@charter.net> - 2011-04-07 00:45 -0500
Re: who moved reload? harrismh777 <harrismh777@charter.net> - 2011-04-07 00:50 -0500
Re: who moved reload? harrismh777 <harrismh777@charter.net> - 2011-04-07 00:57 -0500
Re: who moved reload? geremy condra <debatem1@gmail.com> - 2011-04-06 23:09 -0700
csiph-web