This thread was almost about Python once

Ivan Van Laningham ivanlan at callware.com
Mon Jan 31 23:33:28 EST 2000


Hi All--

Clarence Gardner wrote:
> 
> Thomas Wouters <thomas at xs4all.net> wrote:
> : *) on Linux systems, passing an open fd is actually fairly easy and fairly
> : compatible; old (or perhaps just all) interpreters could be started with
> : '/proc/fd/3' as the script. There was talk about this on the linux kernel
> : list a year or so ago (and probably more often before and after that) but
> : the problem was, and probably still is, that it would break interpreters
> : that rely on opening a filedescriptor right after starting and assuming it
> : will be fd 3.
> 
> What interpreter is so braindead as to assume that particular file
> descriptors are available when it is invoked?  And even if there are
> any, catering to them is worse than all of the Microsoft backward-
> compatibility-to-1985 hacks put together, IMNSHO.
> 

stdin = fd 0
stdout = fd 1
stderr = fd2
next fd you ask for = fd3

Not braindead at all.  Just a nice tradition, which is observed on
unices & their descendents, but not on M$.

<oh-poop-where-did-fd-1-go?>-ly y'rs,
Ivan
----------------------------------------------
Ivan Van Laningham
Callware Technologies, Inc.
ivanlan at callware.com
ivanlan at home.com
http://www.pauahtun.org
See also: 
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours
----------------------------------------------




More information about the Python-list mailing list