Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52756
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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 | UNSURE 0.211 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.58; '*S*': 0.00; 'nasty': 0.07; 'exit': 0.09; 'objects,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'changes': 0.15; '"from': 0.16; '"run': 0.16; 'effect.': 0.16; 'on)': 0.16; 'received:14': 0.16; 'reload': 0.16; 'subject:python': 0.16; 'modification': 0.16; 'code.': 0.18; 'module': 0.19; 'import': 0.22; '(in': 0.22; 'shell': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'options': 0.25; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'function': 0.29; 'code': 0.31; 'issuing': 0.31; 'file': 0.32; 'run': 0.32; '-----': 0.33; 'subject:the': 0.34; 'but': 0.35; 'there': 0.35; 'functions.': 0.36; 'reflect': 0.36; 'useful': 0.36; 'hi,': 0.36; 'email addr:python.org': 0.37; 'thank': 0.38; 'subject:': 0.39; 'changed': 0.39; 'even': 0.60; 'august': 0.61; 'lost': 0.61; 'further': 0.61; 'you.': 0.62; 'back': 0.62; 'information': 0.63; 'name': 0.63; 're:': 0.63; 'email name :python-list': 0.65; 'within': 0.65; 'worth': 0.66; 'side': 0.67; 'notice:': 0.67; 'header:Reply-To:1': 0.67; 'person,': 0.68; '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; 'privileged.': 0.69; 'wish': 0.70; '8bit%:100': 0.72; 'disclose': 0.74; 'history,': 0.84; 'received:106.10.151': 0.84; 'medium.': 0.91; 'shell,': 0.91; '2013': 0.98 |
| X-Yahoo-Newman-Property | ymail-3 |
| X-Yahoo-Newman-Id | 116008.69378.bm@omp1016.mail.sg3.yahoo.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1377066414; bh=IDVC+ljCBjE0ysIDFk4mDZbiwXN3Co/7ylOqcDVpcPI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rnO1pvjMbWqpoFS277m94PEGvzWC2gwldaj+vfzmCV3B26JYIaTddHPnjkPzlYABPyIZ+EXvL3Hf8x/n1rAPjAE/UbGCaZXeQ5a/xLxVRkej55iPtwBZXw7gBBg5Gq2Gv665WCrhHl1DAtHBKTYZZYE5bf85sZHqsEvBIvIHdZ4= |
| DomainKey-Signature | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=BrMPk/S9xR8fqFkcU6KqLdZ3FXQ4pG/ZVF7Wgt9GOUqU2ZnuX4zBriyynpR6BOcWko5ukR0t2D1Yb7YuuLIrFbBVRE0nSQ9/bczZqCI9TnY7Nk13oTLCt2Spj3Esc8GJLrk1Ds4ZcS22hNNO1sofXxqzV49dki2kEsVMfyfrE5U=; |
| X-YMail-OSG | aApFOScVM1nxCBS_LcWX7Andv_167d9__VA4Om8SEA7SUSP mjAJQbF_ChdOH587Tqld2a4saWhM7idmS3PN.JcRj6j.iV2CQbOKVEfDBPPM TENQEmVexHHcKo0yyjLALpCDA6WpQ5vH7wwGZF773qiTqUEjPyPvcrbvuX8p GZFAhU532uH1CLwSIy..B47464lL46C_RAz2WmNoJ0iT7K9wJbN8I05hfdZU 57hKZ3tniVgJPsCJk3rREDAPV_snOgbOg0L9DaMjJ5LhVtuUYAtWlxZUArG3 0.TQkAituMT5eecy.dW5EzAKk9uFSYTEFODybryhJnbanmcI..a3jEFY5j5I 7ZXIxXyt_s5k0kyTjOtR_ykUl.UeokrStoBZCs79iKT94.efEP9ywCAByiQc TYrzMdjBIi4nQnk84mXEzqqtZng6AgMilIVEugevqBjMh09D5h0wmhw3SneH TS7amcQrqhoCRp9wlgoiRL1GBpuRejGlOS4Bwdrxe5wZXAQhla.M_dUlwhLA BqWT8DpVeOYsk6oQPgOUHh3.vb.W74BKyzOwgRKZsCmEQoonOGq51fP1SBQ8 GkKKl07v488HFeCd1gNIL0yhtDNqfEPF1RG4YQD8swopEXddBmgldfly2MwJ phHI7jRuqPyiDB0J73KRzuPAqu7fgftq6AWdjRw-- |
| X-Rocket-MIMEInfo | 002.001, CgpUaGFuayB5b3UsCsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCBCdXQgSSB3aXNoIGlmIHRoZXJlIHdhcyBhIGZvb2xwcm9vZiByZWxvYWQKd2l0aCBiZXN0IHJlZ2FyZHMsClN1ZGhlZXIKCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0KPiBGcm9tOiBKZWFuLU1pY2hlbCBQaWNoYXZhbnQgPGplYW5taWNoZWxAc2VxdWFucy5jb20.Cj4gVG86IFN1ZGhlZXIgSm9zZXBoIDxzdWRoZWVyLmpvc2VwaEB5YWhvby5jb20.Cj4gQ2M6IHB5dGhvbi1saXN0QHB5dGhvbi5vcmcKPiBTZW50OiBUdWVzZGEBMAEBAQE- |
| X-Mailer | YahooMailWebService/0.8.155.576 |
| References | <1376873736.85790.YahooMailNeo@web193402.mail.sg3.yahoo.com> <240094707.38267207.1377016657069.JavaMail.root@sequans.com> |
| Date | Wed, 21 Aug 2013 14:26:54 +0800 (SGT) |
| From | Sudheer Joseph <sudheer.joseph@yahoo.com> |
| Subject | Re: refresing the edited python function |
| To | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| In-Reply-To | <240094707.38267207.1377016657069.JavaMail.root@sequans.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailman-Approved-At | Wed, 21 Aug 2013 10:58:39 +0200 |
| Cc | "python-list@python.org" <python-list@python.org> |
| 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.70.1377075520.19984.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1377075520 news.xs4all.nl 16003 [2001:888:2000:d::a6]:52923 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52756 |
Show key headers only | View raw
Thank you, But I wish if there was a foolproof reload with best regards, Sudheer ----- Original Message ----- > From: Jean-Michel Pichavant <jeanmichel@sequans.com> > To: Sudheer Joseph <sudheer.joseph@yahoo.com> > Cc: python-list@python.org > Sent: Tuesday, 20 August 2013 10:07 PM > Subject: Re: refresing the edited python function > > > ----- Original Message ----- > >> 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 > > Hi, > > My "standard" way ;) : > 1/ create a file > 2/ edit the code > 3/ run ipython (with %pdb on) > 4/ within ipython "run myfile.py" > 5/ check / introspect /debug > 6/ change the code > 7/ exit ipython > 8/ reenter ipython > 9/ using the ipython shell history, reexecute the file (2 key press) and go back > to 5/ > > I used to reload my objects, it's been useful until one time when I lost a > lot of time because of some nasty side effect. In the end it's not worth it. > Always quit the shell, always. > > JM > > > > -- IMPORTANT NOTICE: > > The contents of this email and any attachments are confidential and may also be > privileged. If you are not the intended recipient, please notify the sender > immediately and do not disclose the contents to any other person, use it for any > purpose, or store or copy the information in any medium. Thank you. >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: refresing the edited python function Sudheer Joseph <sudheer.joseph@yahoo.com> - 2013-08-21 14:26 +0800
csiph-web