fcntl problems

Miles semanticist at gmail.com
Fri Aug 31 11:33:03 EDT 2007


On 8/31/07, mhearne808 wrote:
> Looking at my flock(3) man page, I'm guessing that "35" is the error
> code for EWOULDBLOCK.  Which system header file am I supposed to look
> in to figure that magic number out?

I got the error number by looking at the IOError exception raised when
playing with the interactive interpreter, but I really should have
written:

from errno import EWOULDBLOCK
...
    if e.args[0] == EWOULDBLOCK:
...

- Miles



More information about the Python-list mailing list