Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.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; '21,': 0.07; 'currently,': 0.09; 'module)': 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; 'useless': 0.09; 'jan': 0.12; '@property': 0.16; 'dialog.': 0.16; 'does,': 0.16; 'effect,': 0.16; 'effect.': 0.16; 'idle.': 0.16; 'magic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 's/he': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'mon,': 0.24; 'environment': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'mode': 0.30; 'subject:please': 0.30; "i'm": 0.30; 'gives': 0.31; 'code': 0.31; '(although': 0.31; 'doc': 0.31; 'helpful.': 0.31; 'subject:users': 0.31; 'them?': 0.31; 'noticed': 0.34; 'subject: (': 0.35; "can't": 0.35; 'case,': 0.35; 'but': 0.35; 'there': 0.35; 'idle': 0.36; 'limitations': 0.36; 'right?': 0.36; 'useful': 0.36; 'should': 0.36; 'level': 0.37; 'configured': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'explain': 0.39; 'does': 0.39; 'environment.': 0.39; 'received:71': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'how': 0.40; 'affect': 0.61; 'telling': 0.64; 'different': 0.65; 'situation': 0.65; 'subject': 0.69; 'jul': 0.74; '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: Mon, 21 Jul 2014 05:00:15 -0400 References: <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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405933234 news.xs4all.nl 2930 [2001:888:2000:d::a6]:54670 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74912 On 7/20/2014 11:34 PM, Chris Angelico wrote: > On Mon, Jul 21, 2014 at 1:28 PM, Terry Reedy wrote: >> 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. > > As I understand it, setting them has *absolutely* no effect, > currently, right? As far as I know, setting sys.ps1 and sys.ps2 have no effect in any batch mode program. This has nothing to do with Idle. > There's no situation in which it would be useful to > set them? In that case, it might be useful to put some magic in there > (although I'm not sure it's possible; can't use @property at top level > in a module) that gives a notification - pointing users to the dialog. In general, Idle should execute user code the same way that the interpreter does, subject to the limitations of the different execution environment. > No idea how you'd go about it, but telling someone when what s/he does > is useless can be helpful. What needs better documentation is what the execution environment is, and how the shell is different from a line-buffered console. -- Terry Jan Reedy