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: 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> <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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, Oct 27, 2014 at 2:18 PM, Rustom Mody 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