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


Groups > comp.lang.python > #109539

Re: Everything good about Python except GUI IDE?

From Michael Torrie <torriem@gmail.com>
Newsgroups comp.lang.python
Subject Re: Everything good about Python except GUI IDE?
Date 2016-06-05 22:21 -0600
Message-ID <mailman.21.1465186914.2306.python-list@python.org> (permalink)
References (9 earlier) <878u21uw7p.fsf@elektro.pacujo.net> <nb7nki$fdk$1@dont-email.me> <87twkoa4nt.fsf@elektro.pacujo.net> <b2812bda-c3c8-e7f1-b9cf-634343e13357@gmail.com> <b679595e-9e6f-4eaf-d80c-6f7efa7839a2@gmail.com>

Show all headers | View raw


On 06/05/2016 10:01 PM, Michael Torrie wrote:
> I've thought about this before and even tried my hand at creating a nice
> library for doing this sort of thing with Python.  Generators seem like
> a natural analog for the shell pipes. However there is one big problem
> with them and that is they can only deal with one stream at a time.
> Whereas in shell programming there are 2 streams that you can use and
> connect simultaneously.  For example I can simultaneously pipe standard
> out from a program to another command whilst piping standard error to
> another.  I never figured out a way to emulate this idea of piping
> multiple streams.

When I say that Python generators can only deal with one stream at a
time I mean within the context of generator syntax:

for x in gen(gen(gen(...)))

Obviously I could write a function that returns two generators.  It's
just that you can't nest them cleanly.  Not that bash's syntax is
particularly clean when you are messing with standard error as well as
standard out.

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


Thread

Re: Everything good about Python except GUI IDE? Michael Torrie <torriem@gmail.com> - 2016-06-05 22:21 -0600

csiph-web