Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3334

Re: [Q] ipython: Multiple commands on the same line and newlines

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 <rosuav@gmail.com>
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 <sa0wriuw467.fsf@gmail.com>
References <8dc6c9e4-e50e-401f-95d9-42f80a90196c@l30g2000vbn.googlegroups.com> <sa0wriuw467.fsf@gmail.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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.434.1302971588.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, Apr 17, 2011 at 2:29 AM, Andrea Crotti
<andrea.crotti.0@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[Q] ipython: Multiple commands on the same line and newlines Phil Winder <philipwinder@gmail.com> - 2011-04-16 06:55 -0700
  Re: [Q] ipython: Multiple commands on the same line and newlines Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-04-16 18:29 +0200
    Re: ipython: Multiple commands on the same line and newlines Phil Winder <philipwinder@gmail.com> - 2011-04-16 09:37 -0700
      Re: ipython: Multiple commands on the same line and newlines Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-04-17 14:11 +0200
        Re: ipython: Multiple commands on the same line and newlines Phil Winder <philipwinder@gmail.com> - 2011-04-17 11:40 -0700
          Re: ipython: Multiple commands on the same line and newlines Alexander Kapps <alex.kapps@web.de> - 2011-04-17 21:39 +0200
  Re: [Q] ipython: Multiple commands on the same line and newlines Chris Angelico <rosuav@gmail.com> - 2011-04-17 02:33 +1000
  Re: [Q] ipython: Multiple commands on the same line and newlines Terry Reedy <tjreedy@udel.edu> - 2011-04-16 12:39 -0400
    Re: [Q] ipython: Multiple commands on the same line and newlines harrismh777 <harrismh777@charter.net> - 2011-04-18 01:01 -0500
      Re: [Q] ipython: Multiple commands on the same line and newlines Chris Angelico <rosuav@gmail.com> - 2011-04-18 16:12 +1000
  Re: [Q] ipython: Multiple commands on the same line and newlines "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-04-17 04:22 +0000

csiph-web