Message254572
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 |
|
Date |
User |
Action |
Args |
2015-11-12 23:19:18 | martin.panter | set | recipients:
+ martin.panter, vstinner, docs@python |
2015-11-12 23:19:17 | martin.panter | set | messageid: <1447370357.97.0.421919860677.issue25605@psf.upfronthosting.co.za> |
2015-11-12 23:19:17 | martin.panter | link | issue25605 messages |
2015-11-12 23:19:17 | martin.panter | create | |
|