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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to