Re: fcntl example

lance@fox.com
Tue, 3 May 94 7:04:32 PDT

> From: Guido.van.Rossum@cwi.nl
> Date: Tue, 03 May 1994 13:04:29 +0200
>
> I just noticed something.
>
> > import fcntlh # values used by fcntl. created using h2py from
> > # /usr/include/sys/fcntl.h
>
> Actually, such a file is already present in the Python distribution in
> Lib/sgi and Lib/sun4, named FCNTL.py. Versions for other platforms
> are most welcome!
>
> --Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
> URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>

Why doesn't the fcntl module define things itself.
Doing:

#ifdef FLAG
x = newintobject(FLAG);
dictinsert(d,"FLAG",x);
#endif

in the initmodule() routine will make it so all these extra processed
header files not needed. Macros can also be defined as methods.

--
Lance Ellinghouse                lance@fox.com