Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'output': 0.05; 'method.': 0.07; 'app,': 0.09; 'output,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'separately': 0.09; 'statements': 0.09; 'def': 0.12; 'jan': 0.12; 'easier.': 0.16; 'effect.': 0.16; 'idle,': 0.16; 'idle.': 0.16; 'implies': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'input': 0.22; 'issue.': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'tend': 0.24; '---': 0.24; 'suggested': 0.26; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'mode': 0.30; 'statement': 0.30; 'subject:please': 0.30; "i'm": 0.30; '(which': 0.31; 'code': 0.31; 'comments': 0.31; 'lines': 0.31; 'doc': 0.31; 'multiline': 0.31; 'subject:users': 0.31; 'comment': 0.34; 'copying': 0.34; 'noticed': 0.34; 'maybe': 0.34; 'could': 0.34; 'subject: (': 0.35; "can't": 0.35; 'something': 0.35; 'editor': 0.35; 'but': 0.35; 'idle': 0.36; 'possible': 0.36; 'should': 0.36; 'half': 0.37; 'configured': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'explain': 0.39; 'received:71': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'space': 0.40; 'users': 0.40; 'how': 0.40; 'above,': 0.60; 'affect': 0.61; 'between': 0.67; 'prompt': 0.68; 'programs,': 0.74; 'pasting': 0.84; 'received:fios.verizon.net': 0.84; 'subject:read': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Idle's Shell: prompts and indents (was ...) Idle users please read Date: Sun, 20 Jul 2014 23:28:21 -0400 References: <87iomy4ciy.fsf@elektro.pacujo.net> <53c5f6dc$0$9505$c3e8da3$5496439d@news.astraweb.com> <87egxl4zq8.fsf@elektro.pacujo.net> <53c73ff0$0$29897$c3e8da3$5496439d@news.astraweb.com> <9ef930a0-5a41-4a20-a13a-003c9e8246fe@googlegroups.com> <9b5557e3-45ea-4d3b-81cd-90d69322c556@googlegroups.com> <64e2ac85-5c95-4834-b140-2189b884fb02@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405913319 news.xs4all.nl 2864 [2001:888:2000:d::a6]:50322 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74901 On 7/20/2014 8:55 PM, Chris Angelico wrote: >> Idea 4 (which I already suggested on the tracker). Put statement input >> prompts and output separators on lines by themselves. As with 3. above, use >> standard 4 space indents, as with >> >>>>> : >> def f(x): >> if x: >> print('got it') >> return 'something' >> >>>>> : >> f(3) >> --- >> got it >>>>> : >> >> Idle users other than Rick, any comments on the possible improvements? Note that single multiline statements can be directly copied for pasting by the normal method. > I can't comment on how it interacts with the editor half of Idle, but > for the shell as a stand-alone app, and for copying and pasting into > other programs, this last idea is rather interesting. I'm broadly > happy with the current system (>>> def f(x):), and the prompt is a > little weird (">>>:"? but maybe "Python:" would be less weird; I don't > advise "Idle:" as it implies that something is idle that might be > busy), but this would make copy/paste that bit easier. It would tend > to de-emphasize the difference between input and output, though, which > may or may not be an issue. But definitely interesting. The prompt and separator could be configurable. A few users have noticed (and complained) that setting sys.ps1 and sys.ps2 *in the batch mode user process* has no effect. The Idle doc should better explain why this is and should be. User code should not affect the operation of Idle. Idle is separately configured through dialogs. -- Terry Jan Reedy