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


Groups > comp.lang.python > #105114

Re: Bash-like pipes in Python

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Random832 <random832@fastmail.com>
Newsgroups comp.lang.python
Subject Re: Bash-like pipes in Python
Date Thu, 17 Mar 2016 12:31:30 -0400
Lines 11
Message-ID <mailman.277.1458232294.12893.python-list@python.org> (permalink)
References <56e97459$0$1600$c3e8da3$5496439d@news.astraweb.com> <87egbacq2j.fsf@elektro.pacujo.net> <56eabae8$0$1599$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmopjW7DXab5=5G_27fBRRdBN_CyG_YoL0JMm_JOj=ZV8A@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de ykSJL7KdChXEBfu2cKupfgk3yYwtMo7tcM4O8TRSnmyA==
Return-Path <random832@fastmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'received:internal': 0.09; 'script,': 0.09; 'thu,': 0.15; 'already!': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'quantum': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'sequence': 0.27; "we're": 0.30; 'computing': 0.32; 'operate': 0.32; 'subject:like': 0.33; 'add': 0.34; 'protocol': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'list.': 0.37; 'received:66': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'mar': 0.65; 'here': 0.66; "it'd": 0.84; 'step,': 0.84; "they'd": 0.84
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=A8Us7u313ahmNpSiZUiHxz3pNpc=; b=XiJXUT y3cvhQYMvIML4AoE6MvFTXYnsvuI4xQUKRWWr3cwo0SVWjj8NNMIflYdh4gUMmkw VwoUITPk11ZV/b2Tu+V1tfPuMXKqz/7XD/Sfxo3ifuMQkBWaO9jMds19on4lHALG aklZN9XegTFMkZcBt3KriVHYiEkxnfZZOp51w=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=A8Us7u313ahmNpS iZUiHxz3pNpc=; b=HyvWMtF359Y/tt11cvHXJ8uxTAEjSEpBOKxKZMBfAFkgn2S DicD7aOcbV/vO492cRlSLX4K6dQReKQrwg8/lMd3CN4urKQ1eySLvNeY1C/QGNSj aCS6MaQrrUFmv0t0IsvUNsFN4cyifZz7O64L2aI4wezcGThCCXNtrqJ8goMw=
X-Sasl-Enc 5LrzX1mSaKxXAi8zc9NprmMbHQzuo4jPjgmxoI1sUegz 1458232290
X-Mailer MessagingEngine.com Webmail Interface - ajax-872772a7
In-Reply-To <CAPTjJmopjW7DXab5=5G_27fBRRdBN_CyG_YoL0JMm_JOj=ZV8A@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105114

Show key headers only | View raw



On Thu, Mar 17, 2016, at 10:36, Chris Angelico wrote:
> This object has a generator/list duality, but if you observe it, it
> collapses to a list. When used interactively, it'd be pretty much the
> same as calling list() as the last step, but in a script, they'd
> operate lazily.
> 
> Quantum computing is here already!

Might as well add the sequence protocol while we're at it.

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


Thread

Bash-like pipes in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-17 01:57 +1100
  Re: Bash-like pipes in Python Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-16 11:09 -0400
    Re: Bash-like pipes in Python Christian Gollwitzer <auriocus@gmx.de> - 2016-03-16 16:16 +0100
  Re: Bash-like pipes in Python Random832 <random832@fastmail.com> - 2016-03-16 11:20 -0400
    Re: Bash-like pipes in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-17 21:58 +1100
      Re: Bash-like pipes in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 13:49 +0200
        Re: Bash-like pipes in Python Sivan Greenberg <sivan@vitakka.co> - 2016-03-17 14:10 +0200
          Re: Bash-like pipes in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-17 14:44 +0200
  Re: Bash-like pipes in Python "Sven R. Kunze" <srkunze@mail.de> - 2016-03-16 16:20 +0100
  Re: Bash-like pipes in Python Random832 <random832@fastmail.com> - 2016-03-16 11:21 -0400
  Re: Bash-like pipes in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-17 02:39 +1100
  Re: Bash-like pipes in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-16 19:04 +0200
    Re: Bash-like pipes in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-18 01:10 +1100
      Re: Bash-like pipes in Python Chris Angelico <rosuav@gmail.com> - 2016-03-18 01:36 +1100
      Re: Bash-like pipes in Python Random832 <random832@fastmail.com> - 2016-03-17 12:31 -0400
      Re: Bash-like pipes in Python Sivan Greenberg <sivan@vitakka.co> - 2016-03-17 19:20 +0200

csiph-web