Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!news2.euro.net!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:: [': 0.03; 'relates': 0.05; 'dictionary': 0.07; 'sun,': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'empty),': 0.16; 'subject:] ': 0.16; 'idle': 0.19; 'command': 0.19; '(like': 0.22; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; 'sometimes,': 0.23; "what's": 0.24; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; '17,': 0.31; 'annoying': 0.31; 'to:addr:python-list': 0.32; 'things': 0.33; 'difference': 0.35; 'requires': 0.35; 'received:209.85': 0.37; 'issue': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'received:209.85.214': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'retrieve': 0.60; '2011': 0.62; 'subject:line': 0.73; 'subject:commands': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=x2pkFg8WxtJtG76Nq47js7KsgzEVVHdfuqzG1kOLXiY=; b=A55TmQDjTjVpq9pgcdtTiPVAhv5YiPNheLZsVq/rR5nbOeIqyhLKIv0Cdp2Dk9n7l9 PyHJHji+qh3mSFMATfglhlHQd29FZGnz1padXpI670JiHcq5UcsNPEEFTUYG2pZwfOL9 X1G0SfzzC8sL0aJff8m74EuMzl5SjKhZz86Qs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Bk4KfGy1BFGe2IAYeVdUXb8gP41G8HqspBmQuG9BaC3qmAg4qEp4v1iHdcZnOxMKu5 pw448z4uN68bngxZtvDfmzKLHjtUAZ64ZXrsajk4xD7aEP8OMWo1d78n6bPuvBUJGYJZ i9DkExbWlC3WfDdlvr+ZkmYkEu3oQH2hj/UbU= MIME-Version: 1.0 In-Reply-To: References: <8dc6c9e4-e50e-401f-95d9-42f80a90196c@l30g2000vbn.googlegroups.com> Date: Sun, 17 Apr 2011 02:33:05 +1000 Subject: Re: [Q] ipython: Multiple commands on the same line and newlines From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302971588 news.xs4all.nl 41103 [::ffff:82.94.164.166]:49695 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3334 On Sun, Apr 17, 2011 at 2:29 AM, Andrea Crotti wrote: > for > x = 10 > > what's the difference for you if it gets evaluated before or after? I have the same issue in IDLE sometimes, and the reason it's annoying relates to the up-arrow key (Alt-P in IDLE). I can retrieve one entire command, but if that command requires a "prefix statement" to set things up (like initializing a dictionary to empty), that has to be separate. Chris Angelico