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


Groups > comp.lang.python > #52711

Re: refresing the edited python function

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: refresing the edited python function
Date 2013-08-20 11:09 +1000
References <1376873736.85790.YahooMailNeo@web193402.mail.sg3.yahoo.com> <87haemjj92.fsf@handshake.de> <1376897267.58372.YahooMailNeo@web193402.mail.sg3.yahoo.com>
Newsgroups comp.lang.python
Message-ID <mailman.44.1376960991.19984.python-list@python.org> (permalink)

Show all headers | View raw


Sudheer Joseph <sudheer.joseph@yahoo.com> writes:

> I wonder how the code developers work in this case every time a
> function is modified one has to restart the console is a nightmare...

Developers use the interactive console for exploring, not developing.

Use it to test, to confirm a suspicion about what a function call might
do, to write code you know you will not run more than once.

Any code you suspect might persist – and if you don't know, expect that
it might persist – you should be writing in a module file and running as
a program.

> Hope one day some solution will be evolved.

The time machine has brought you the solution: a text editor and the
Python non-interactive session :-)

-- 
 \          “Generally speaking, the errors in religion are dangerous; |
  `\    those in philosophy only ridiculous.” —David Hume, _A Treatise |
_o__)                                           of Human Nature_, 1739 |
Ben Finney

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


Thread

Re: refresing the edited python function Ben Finney <ben+python@benfinney.id.au> - 2013-08-20 11:09 +1000
  Re: refresing the edited python function Roy Smith <roy@panix.com> - 2013-08-19 21:39 -0400

csiph-web