multiline prototyping on command line (oops)
D'Arcy J.M. Cain
darcy at vex.net
Sat Oct 30 10:40:16 EDT 1999
Eric Smith <eric at fruitcom.com> wrote:
> Greg --
> gerglery at usa.net (greg andruk) posted in comp.lang.python on 30
> Oct 1999 04:55:37 -0400:
> > Anyway, Python's not especially amenable to one-liners. Instead, it
> > has a really spiffy interactive mode you can leave running in a window
> > or spare console session that works like you probably wish `perl -d'
> > worked:
> Yeah, it is a nice "shell" interface for testing, however one liners are
> useful:
> 1. I use their history arrows to access them from the unix shell
> 2. You can use the unix fc for editing long ones
> 3. You can paste them into your scripts.
> 4. They are easy to go back to and edit etc.
All of which apply to the Python shell with readline installed.
--
D'Arcy J.M. Cain <darcy at caingang.com> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list
mailing list