Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109539 > unrolled thread
| Started by | Michael Torrie <torriem@gmail.com> |
|---|---|
| First post | 2016-06-05 22:21 -0600 |
| Last post | 2016-06-05 22:21 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Everything good about Python except GUI IDE? Michael Torrie <torriem@gmail.com> - 2016-06-05 22:21 -0600
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2016-06-05 22:21 -0600 |
| Subject | Re: Everything good about Python except GUI IDE? |
| Message-ID | <mailman.21.1465186914.2306.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web