Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2747

who moved reload?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe15.iad.POSTED!00000000!not-for-mail
From harrismh777 <harrismh777@charter.net>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20101005 SeaMonkey/2.0.9
MIME-Version 1.0
Newsgroups comp.lang.python
Subject who moved reload?
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 32
Message-ID <Obcnp.2676$Ot6.788@newsfe15.iad> (permalink)
NNTP-Posting-Host bhfalnmnehkiipiadppofiigmhjcicjo
X-Complaints-To abuse@charter.net
X-Trace ibafepnipngekpdoffhhjjcnmknpkahndcmjiokodkocgofpbhfalnmnehkiipiahhkeibjbinkbncdmiandpfopjidhjhgiikjmofoaippncbgmgmahahghomikhdfoplepgefcpbbnokgh
NNTP-Posting-Date Thu, 07 Apr 2011 05:45:18 UTC
Date Thu, 07 Apr 2011 00:45:18 -0500
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2747

Show key headers only | View raw


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 | NextNext in thread | Find similar


Thread

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