what happens to Popen()'s parent-side file descriptors?

Seebs usenet-nospam at seebs.net
Thu Oct 14 15:55:42 EDT 2010


On 2010-10-14, Roger Davis <rbd at hawaii.edu> wrote:
> Seebs, you are of course correct that the example I quoted (`cat |
> grep | whatever`) is best done internally with the re module and built-
> in language features, and in fact that has already been done wherever
> possible. I should have picked a better example, there are numerous
> cases where I am calling external programs whose functionality is not
> duplicated by Python features.

Fair enough.  It's just a common pitfall when moving from shell to basically
any other language.  My first attempts to code in C involved a lot of
building up of system() calls.  :P

-s
-- 
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nospam at seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.



More information about the Python-list mailing list