Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79820
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Classes and the command line |
| Date | 2014-10-28 00:08 -0400 |
| References | <8uar4a1pa6d631ktr33h8rau1ilf2rjvi3@4ax.com> <85mw8i1aak.fsf@benfinney.id.au> <mailman.15222.1414379411.18130.python-list@python.org> <0d42e474-a864-4155-b602-e4659899fffd@googlegroups.com> <CAPTjJmqKLhMnV6U-cEE8H-Qs2rPo8aYKfq1bCEMaZpbuhJsPMQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15249.1414469330.18130.python-list@python.org> (permalink) |
On 10/26/2014 11:24 PM, Chris Angelico wrote: > On Mon, Oct 27, 2014 at 2:18 PM, Rustom Mody <rustompmody@gmail.com> wrote: >> On Monday, October 27, 2014 8:40:48 AM UTC+5:30, Chris Angelico wrote: >>> You can get block-by-block history by using Idle. I find that fairly >>> convenient for manipulating class/function definitions. >>> >>> ChrisA >> >> Umm... Nice! >> A bit inconsistent in that the '...' does not appear. >> But thats good; makes copy|cut-pasting from interpreter to file >> a mostly trivial operation. One of the differences between console interpreter and Idle Shell is that the former is line oriented whereas Shell is statement oriented. In the console interpreter, you cannot edit a line after it is entered. In Shell, you can edit any line until you enter an entire statment. Similarly, c. i. history recalls a line at a time. Recalling an multiline statment has to be done a line at a time, in order. Shell history recalls an entire statement, even if multiple lines (this is what Chris means by 'blocks'). Explaining this difference as the reason for no ... is on my todo list. > It's inconsistent only because the default sys.ps2 is those dots, > which aren't necessary in Idle. You could make it consistent by simply > changing sys.ps2. Nope. User code is executed in the user process. Its only effect on the Idle process is to write to stdout or stderr for display. There is tracker issue about letting users change sys.ps1 *in the Idle process*, but it would have to be through the menu or config dialog. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Classes and the command line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-26 22:27 -0400
Re: Classes and the command line Rustom Mody <rustompmody@gmail.com> - 2014-10-26 20:05 -0700
Re: Classes and the command line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-26 23:28 -0400
Re: Classes and the command line Terry Reedy <tjreedy@udel.edu> - 2014-10-28 00:14 -0400
Re: Classes and the command line Ben Finney <ben+python@benfinney.id.au> - 2014-10-27 14:06 +1100
Re: Classes and the command line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-26 23:32 -0400
Re: Classes and the command line alister <alister.nospam.ware@ntlworld.com> - 2014-10-27 11:17 +0000
Re: Classes and the command line Chris Angelico <rosuav@gmail.com> - 2014-10-27 22:33 +1100
Re: Classes and the command line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-27 09:34 -0400
Re: Classes and the command line Chris Angelico <rosuav@gmail.com> - 2014-10-27 14:10 +1100
Re: Classes and the command line Rustom Mody <rustompmody@gmail.com> - 2014-10-26 20:18 -0700
Re: Classes and the command line Chris Angelico <rosuav@gmail.com> - 2014-10-27 14:24 +1100
Re: Classes and the command line Rustom Mody <rustompmody@gmail.com> - 2014-10-26 20:30 -0700
Re: Classes and the command line Terry Reedy <tjreedy@udel.edu> - 2014-10-28 00:08 -0400
Re: Classes and the command line Chris Angelico <rosuav@gmail.com> - 2014-10-28 15:57 +1100
Re: Classes and the command line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-26 23:33 -0400
csiph-web