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


Groups > comp.lang.python > #52670

refresing the edited python function

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 <sudheer.joseph@yahoo.com>
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 <sudheer.joseph@yahoo.com>
Subject refresing the edited python function
To "python-list@python.org" <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 <sudheer.joseph@yahoo.com>
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10.1376875558.19984.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw


Hi,
I have been using ipython and ipython with qtconsole and working on a code with functions. Each time I make a modification in function  

I 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 the function. I tried below options
del function name

import the module again  by issuing "from xxx.py import yy"
import xxx.py
make changes
reload(xxx.py)
this
 works only if the the function in the code has same name as the code. 
But even this do not reflect the changes made by editing the code.
So what is the standard way to update the function for further tests after an edit?
with best regards,
Sudheer 
 
***************************************************************
Sudheer Joseph 
Indian National Centre for Ocean Information Services
Ministry of Earth Sciences, Govt. of India
POST BOX NO: 21, IDA Jeedeemetla P.O.
Via Pragathi Nagar,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://oppamthadathil.tripod.com
***************************************************************

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

refresing the edited python function Sudheer Joseph <sudheer.joseph@yahoo.com> - 2013-08-19 08:55 +0800
  Re: refresing the edited python function alex23 <wuwei23@gmail.com> - 2013-08-20 17:01 +1000
    RE: refresing the edited python function "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> - 2013-08-20 15:08 +0000

csiph-web