[docs] [issue25605] fcntl doc: document exceptions raised on error for ioctl() and flock()

Martin Panter report at bugs.python.org
Thu Nov 12 18:19:18 EST 2015


Martin Panter added the comment:

This looks good for Python 2 and the equivalent for Python 3.

FWIW the ValueError case is platform-dependent. On Linux, I see EINVAL (the IOError version of ValueError):

>>> flock(0, LOCK_UN)
>>> flock(0, 0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 22] Invalid argument

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25605>
_______________________________________


More information about the docs mailing list