who moved reload?

Brian Curtin brian.curtin at gmail.com
Thu Apr 7 10:12:37 EDT 2011


On Thu, Apr 7, 2011 at 00:45, 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() 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 ???????????????????????????
> >>>

http://docs.pythonsprints.com/python3_porting/py-porting.html#organizational-changes
might
help you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110407/b185403f/attachment-0001.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /