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


Groups > comp.lang.python > #3391

Re: ipython: Multiple commands on the same line and newlines

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'received:134': 0.05; 'scripting,': 0.07; 'header:In-reply-to:1': 0.09; 'syntax': 0.12; 'command': 0.19; 'writes:': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'code,': 0.20; 'cheers,': 0.20; 'code': 0.22; 'cc:addr:python-list': 0.22; 'version': 0.25; 'guess': 0.26; 'looks': 0.28; 'message-id:@gmail.com': 0.30; 'cc:addr:python.org': 0.31; 'does': 0.31; '...': 0.32; 'things': 0.33; 'lines': 0.34; 'change': 0.34; 'file': 0.35; 'header:User- Agent:1': 0.35; 'quite': 0.36; 'too': 0.36; 'doing': 0.36; 'error.': 0.36; 'refer': 0.37; 'run': 0.37; 'but': 0.38; 'received:de': 0.39; "it's": 0.40; 'might': 0.40; 'press': 0.71; 'subject:line': 0.73; 'placing': 0.74; 'subject:commands': 0.84
MIME-version 1.0
Content-transfer-encoding 7BIT
Content-type text/plain
X-IronPort-AV E=Sophos;i="4.64,227,1301868000"; d="scan'208";a="106990273"
From Andrea Crotti <andrea.crotti.0@gmail.com>
To Phil Winder <philipwinder@gmail.com>
Subject Re: ipython: Multiple commands on the same line and newlines
References <8dc6c9e4-e50e-401f-95d9-42f80a90196c@l30g2000vbn.googlegroups.com> <mailman.432.1302971361.9059.python-list@python.org> <0eb06f93-88d0-4ff8-b21f-bb3264305d76@34g2000pru.googlegroups.com>
Date Sun, 17 Apr 2011 14:11:01 +0200
In-reply-to <0eb06f93-88d0-4ff8-b21f-bb3264305d76@34g2000pru.googlegroups.com>
User-Agent Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)
Cc python-list@python.org
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.458.1303042271.9059.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 82.94.164.166
X-Trace 1303042271 news.xs4all.nl 81475 [::ffff:82.94.164.166]:33150
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3391

Show key headers only | View raw


Phil Winder <philipwinder@gmail.com> writes:

> Yes, that does not produce an error, but it does not "work". Please
> refer to my first post. Try the first code, you will get a syntax
> error. Placing things on one line makes for easy history scrollback.
> In your version you will have 2 lines of history for the x = 0 term
> and the while ... term. I don't want to have to press up twice,
> especially when the code was in the distant past! Also cpaste might be
> ok for scripting, but it looks too clumsy to use at the command line.
>
> Cheers,
> Phil

Well I guess that's the way it is with the interpreter..
But I don't see the sense in doing everything from there, just write the
code to a file and use %edit from ipython to change and run it, it's
quite nice and easy too.

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


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