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


Groups > comp.lang.python > #79758

Re: Classes and the command line

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.05; 'definitions.': 0.07; "'...'": 0.09; 'nice!': 0.09; 'subject:command': 0.09; 'thats': 0.09; 'cc:addr:python-list': 0.11; 'mostly': 0.14; 'windows': 0.15; 'appear.': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle.': 0.16; 'operation.': 0.16; 'sadly': 0.16; 'subject:Classes': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'convenient': 0.24; 'fairly': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; '(this': 0.29; 'message-id:@mail.gmail.com': 0.30; 'enabled': 0.31; 'trivial': 0.31; 'file': 0.32; 'monday,': 0.33; 'subject:the': 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'consistent': 0.36; 'changing': 0.37; 'operating': 0.37; 'system,': 0.38; 'ben': 0.38; 'pm,': 0.38; 'does': 0.39; 'simply': 0.61; 'default': 0.69; 'history,': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BITj5WMUtk0O1y+Uei03S7JM9ee1+rxU+qw+tUbWXrs=; b=Wb+tkY0Vb8LupjjXRoYvyVQPXwaPjIah3MNtol+cyiWsOHJG81j3tQEHRtPwDz1cVr ndrhM0h59jFbMl3gXYC+hpeyPFWdvGB0ASPvOfSXW4nqrphiY9hdilBlpn2ncWkybnp0 kv4V8bg+/q6tKy9CUWooXpF3LLC8alf4neU9IvOrj77DFFNpbz/zJuQyFwb4a0JOWnBd 54KZSM4yDiU8tlLabcDD0x3pCabt5CKxPfQSlbZvgHqUPkOiAB0gopPBRkhQ7Yc6TPIs +cFInwcMKF/wtg/LKBAGE9D6Jz2Pqc4IvWSPUsKy/8rrmMahNUgEaqsz3huiC8ehs5qT cOmQ==
MIME-Version 1.0
X-Received by 10.107.156.17 with SMTP id f17mr13523663ioe.15.1414380295215; Sun, 26 Oct 2014 20:24:55 -0700 (PDT)
In-Reply-To <0d42e474-a864-4155-b602-e4659899fffd@googlegroups.com>
References <8uar4a1pa6d631ktr33h8rau1ilf2rjvi3@4ax.com> <85mw8i1aak.fsf@benfinney.id.au> <mailman.15222.1414379411.18130.python-list@python.org> <0d42e474-a864-4155-b602-e4659899fffd@googlegroups.com>
Date Mon, 27 Oct 2014 14:24:55 +1100
Subject Re: Classes and the command line
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15224.1414380305.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414380305 news.xs4all.nl 2856 [2001:888:2000:d::a6]:35349
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79758

Show key headers only | View raw


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:
>> On Mon, Oct 27, 2014 at 2:06 PM, Ben Finney  wrote:
>> > Right. There is line-by-line history, and editing enabled with the
>> > "readline" plug-in. (This is an advantage of using a programmer-friendly
>> > operating system, which MS Windows sadly is not.)
>>
>> 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.

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.

ChrisA

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


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