Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.192 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.62; '*S*': 0.00; 'skip:e 50': 0.05; '21,': 0.07; 'changes': 0.15; '"from': 0.16; 'reload': 0.16; 'web-': 0.16; 'subject:python': 0.16; 'modification': 0.16; 'code.': 0.18; 'module': 0.19; 'import': 0.22; '(in': 0.22; 'tests': 0.22; 'to:name:python-list@python.org': 0.22; 'options': 0.25; 'post': 0.26; 'tried': 0.27; 'function': 0.29; 'code': 0.31; 'issuing': 0.31; 'skip:t 40': 0.33; 'subject:the': 0.34; 'india': 0.35; 'but': 0.35; 'earth': 0.36; 'functions.': 0.36; 'reflect': 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'indian': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'even': 0.60; 'further': 0.61; 'national': 0.62; 'information': 0.63; 'name': 0.63; 'skip:n 10': 0.64; 'services': 0.66; 'header:Reply-To:1': 0.67; 'received:106': 0.68; 'received:106.10': 0.68; 'received:106.10.166': 0.68; 'received:bullet.mail.sg3.yahoo.com': 0.68; 'received:mail.sg3.yahoo.com': 0.68; 'received:sg3.yahoo.com': 0.68; 'received:117': 0.78; 'no:': 0.84; 'ocean': 0.84; 'sciences,': 0.84; 'ministry': 0.91 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 288774.52282.bm@omp1029.mail.sg3.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1376873736; bh=TSD+PrKy4t7tIdwpTIsh3kHaSiOH+6Q2Lvk/vaoK2II=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=qXazB4hnyhKmmNk38anWoR5T0mzQfeomXUfUiCMYvRDiyT7AepVuGNs4d8QkgiYlWOC1QcnM/abvNcSFW0epkxqh4vqQy7Ph7TwYnq9C64OW9rUDSOXqt6JjoF5XiiN3LUkotWXb7Fy2BJDv3uVkFP7nO6xml54U/eQeITMlzy4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=NmgoSdjN3hsfLxhF1BdqS7J9POwdJglQbOlSb6R2SMRRSykKX+DjLrfvWfQ8+az3/2eR2nYBxfzOkQpH+q45A50JMpqVdz9vOKFRB/rNHKJxqMjhnUBoTaxOsGE2clkmKTuUar7LTpbAZO7OU69VSPdgMPh7WL6jFSYtDdUTWXA=; X-YMail-OSG: UdzXGkEVM1m6J2QBQcQFxRwh4WdFrsJuKGxFzdMdC1JQQt7 jY5m.ajrvTS9Si8CLG67eeXvdItfuXnu2tiAJRvBJs_Y1vT5qXNWSe2X9vzV STS43EbjXhAG5C1aXq5dp.P_GdvIBS.Mn5qFPD6_QnzZul5zU3hWRcpO6d1V N9aOCZCA6hPlJ6E6b3LlmcRGT1sbZf2MG5.oWtsrMEuW1aIDP9Pqr4ta_31q FFMouYujqGIzuPwddh162MR7tuJNLPq6DdVaQ4MkEVuxqr73Xpx_DyWjGiQy LhvcHd52RiGxQdreMKMs9.C.ieLmJ97.5PHAvf_xypTchbfOr.qmZ4dsOwbp qhSQXxib_Wh9C1OgrzBJiNo3ziGkSCkJ0RX_Q2ifjrKi5W8.KkqLuy5EFApf Xf8rybHEwY1e546FEg_9ddWjV5NCAWKy4hCc5JRncxiHypwz3j3qPPipjwQ7 BKjouh3dwjcc5ou.AIQ5Uh17he_2fKDmtD3Pc7PcNw79fqzjDvgIBR7bDwWd PR7zNmicz.aDIEtiDkRDpm..dDCXh9N9eKM5KWM6EkBCfWZTYnWvPj1.Ke75 Uz5O_dCElQryHPOxo1plz5KlDRhgnOcQw7u.LJ7p3WwKag2Tdk4mNc3kt5dn uo.PFxUQ3UfiOKPia8ydwSCeveyzhid6Eu1Zch2CFIYH2IaPQ44Tc09.eMyY S X-Rocket-MIMEInfo: 002.001, CgpIaSwKSSBoYXZlIGJlZW4gdXNpbmcgaXB5dGhvbiBhbmQgaXB5dGhvbiB3aXRoIHF0Y29uc29sZSBhbmQgd29ya2luZyBvbiBhIGNvZGUgd2l0aCBmdW5jdGlvbnMuIEVhY2ggdGltZSBJIG1ha2UgYSBtb2RpZmljYXRpb24gaW4gZnVuY3Rpb27CoCAKCkkgaGF2ZSB0byBxdWl0IElQVEhPTiBjb25zb2xlIChpbiBib3RoIHdpdGggYW5kIHdpdGggb3V0IHF0IGNvbnNvbGUgKSBhbmQgcmVsb2FkIHRoZSBmdW5jdGlvbiBmcmVzaGx5LiBJZiBJIG5lZWQgdG8gc2VlIHRoZSBjaGFuZ2VkIEkgbWFkZSBpbiB0aGUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.154.571 Date: Mon, 19 Aug 2013 08:55:36 +0800 (SGT) From: Sudheer Joseph Subject: refresing the edited python function To: "python-list@python.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="897404883-467383629-1376873736=:85790" X-Mailman-Approved-At: Mon, 19 Aug 2013 03:25:56 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Sudheer Joseph List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 63 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376875558 news.xs4all.nl 16010 [2001:888:2000:d::a6]:59279 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52670 --897404883-467383629-1376873736=:85790 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A=0AHi,=0AI have been using ipython and ipython with qtconsole and workin= g on a code with functions. Each time I make a modification in function=A0 = =0A=0AI have to quit IPTHON console (in both with and with out qt console )= and reload the function freshly. If I need to see the changed I made in th= e function. I tried below options=0Adel function name=0A=0Aimport the modul= e again=A0 by issuing "from xxx.py import yy"=0Aimport xxx.py=0Amake change= s=0Areload(xxx.py)=0Athis=0A works only if the the function in the code has= same name as the code. =0ABut even this do not reflect the changes made by= editing the code.=0ASo what is the standard way to update the function for= further tests after an edit?=0Awith best regards,=0ASudheer =0A=A0=0A*****= **********************************************************=0ASudheer Joseph= =0AIndian National Centre for Ocean Information Services=0AMinistry of Ear= th Sciences, Govt. of India=0APOST BOX NO: 21, IDA Jeedeemetla P.O.=0AVia P= ragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55=0ATel:+91-40-23886047(O),F= ax:+91-40-23895011(O),=0ATel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobil= e)=0AE-mail:sjo.India@gmail.com;sudheer.joseph@yahoo.com=0AWeb- http://oppa= mthadathil.tripod.com=0A***************************************************= ************ --897404883-467383629-1376873736=:85790 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I have been= using ipython and ipython with qtconsole and working on a code with functi= ons. Each time I make a modification in function 
I=0A have to quit IPTHON console (in both w= ith and with out qt console ) and=0A reload the function freshly. If I need= to see the changed I made in the=0A function. I tried below options=
del function name
<= span>
import the module again  b= y issuing "from xxx.py import yy"
=
import xxx.py
make changes
reload(xxx.py)
this=0A works only= if the the function in the code has same name as the code. =0ABut even thi= s do not reflect the changes made by editing the code.
So what is the st= andard way to update the function for further tests after an edit?
with = best regards,
Sudheer
 
****************************= ***********************************
Sudheer Joseph
Indian Na= tional Centre for Ocean Information Services
Ministry of Earth Sciences,= Govt. of India
POST BOX NO: 21, IDA Jeedeemetla P.O.
Via Pragathi Na= gar,Kukatpally, Hyderabad; Pin:5000 55
Tel:+91-40-23886047(O),Fax:+91-40= -23895011(O),
Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
E-= mail:sjo.India@gmail.com;sudheer.joseph@yahoo.com
Web- http://oppamthada= thil.tripod.com
********************************************************= *******
--897404883-467383629-1376873736=:85790--