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


Groups > comp.lang.python > #52711 > unrolled thread

Re: refresing the edited python function

Started byBen Finney <ben+python@benfinney.id.au>
First post2013-08-20 11:09 +1000
Last post2013-08-19 21:39 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#52711 — Re: refresing the edited python function

FromBen Finney <ben+python@benfinney.id.au>
Date2013-08-20 11:09 +1000
SubjectRe: refresing the edited python function
Message-ID<mailman.44.1376960991.19984.python-list@python.org>
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

[toc] | [next] | [standalone]


#52712

FromRoy Smith <roy@panix.com>
Date2013-08-19 21:39 -0400
Message-ID<roy-801ED9.21394319082013@news.panix.com>
In reply to#52711
In article <mailman.44.1376960991.19984.python-list@python.org>,
 Ben Finney <ben+python@benfinney.id.au> wrote:

> Developers use the interactive console for exploring, not developing.

I am reminded of a (very strange) guy I went to school with.  He linked 
/dev/tty to /dev/tty.c.  That allowed him to run "cc /dev/tty.c" and 
type in the text of a C program to compile.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web