Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Iteration, while loop, and for loop Date: Thu, 30 Jun 2016 07:04:12 -0600 Lines: 12 Message-ID: References: <079ff112-8f18-4a27-938f-12e4e55a4a5b@googlegroups.com> <577295b3$0$1598$c3e8da3$5496439d@news.astraweb.com> <20160628122308.4578d876@bigbox.christie.dr> <577460e2$0$1591$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de xF2A42jNJCuTTehf8E6qLQU1OEB+HrRc6ck8murX9yIA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cpython': 0.05; 'interpreter,': 0.09; 'repl': 0.09; 'subject:while': 0.09; 'python': 0.10; 'output': 0.13; 'wed,': 0.15; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'using,': 0.16; 'wrote:': 0.16; 'example.': 0.18; 'prevent': 0.20; 'header:In- Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'omitted': 0.29; "i'm": 0.30; 'that.': 0.30; 'curious': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; "wasn't": 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'rather': 0.39; 'to:addr:python.org': 0.40; 'default': 0.61; 'below.': 0.66; 'prompt': 0.79; '3.4': 0.84; '3.6': 0.84; 'to:name:python': 0.84; 'nas': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jIO0a7xFGFyKdcTOLgYwgq8dbr3D0SlnyqpEdGZtzAQ=; b=LZfNuIAGFgq/xzJXWBO05/zTFdXSGl7Cj5cAtmEQtursez7X5AXPeWVmB935vUiDdp VJZZQQI1LzfyGFEg8SwdcJUY2CHC6QMW+dZJrATtyBSOj26n1154j7BC0jrgHj3f+1dY BVkJXmpG0dG244zGQMURLD05k2rtvS4Zs7qelgPR+7Pl6siqJdMiZkoz5bYzBq/2/PVP IaINbuhK8oVhUeWPXwtiH/l9+3OBMMaGO8BiNvqCTYWeGDSI5d8yCtMn1PC/VFugsasY Rkvwnd29eZo+uk9kQDYB3Mdp2xvOOlNF8e0RWc8CvFzN4wsouB9H51rSTS6+5KKUQWX5 06gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jIO0a7xFGFyKdcTOLgYwgq8dbr3D0SlnyqpEdGZtzAQ=; b=A5NoVQlEKkjN9BST2jksY3CZ8JTT4O748iVBUsBtmje1r9jHCLQ5OrwdskIH8H1xiv sW+SGUcMwjBYxkuKulG3gsMy1Wwm8DjJV+Svlqn1rMRF0Q5Anyaugi/me8GKQrMcc6eo icOcw/lYjb0sRB4WGYi20gbJJLx5jJqMbuVaWmpHf99/cEEhs7EkVytaW45pKlqQ9Vq/ X5JToE5yITUQPIJmzYSZtKzBtJT0Gv844nfpiWv+tdazpnOf1xHhPcTMoGustKVrYiVV zvBGf1As76TLnLZFBuoNKXicj1LQMxRGBsLJ/H1fX98QWf90ri5bB9XA9Vz9Xlal4tIt EXVg== X-Gm-Message-State: ALyK8tLKliHieFCH3n22XjtSxH/4pUp1DcMsNQdyykeY5aLy7CYuRZfLGubtU2BoQqb977TxzKHu9ftDBdqlJw== X-Received: by 10.157.48.36 with SMTP id d33mr9972683otc.30.1467291891943; Thu, 30 Jun 2016 06:04:51 -0700 (PDT) In-Reply-To: <577460e2$0$1591$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <079ff112-8f18-4a27-938f-12e4e55a4a5b@googlegroups.com> <577295b3$0$1598$c3e8da3$5496439d@news.astraweb.com> <20160628122308.4578d876@bigbox.christie.dr> <577460e2$0$1591$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:110842 On Wed, Jun 29, 2016 at 5:59 PM, Steven D'Aprano wrote: > I'm curious what REPL you are using, because in the vanilla Python > interactive interpreter, the output if over-written by the prompt. That is, > what I see in Python 3.6 is: > > py> nas yum yum yumpy> > > unless I take steps to prevent that. See below. I was just using the CPython 3.4 REPL with the default prompt. It appended the prompt rather than overwriting, and I simply omitted it in my message since it wasn't relevant to the example.