This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients docs@python, martin.panter, vstinner
Date 2015-11-12.23:19:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447370357.97.0.421919860677.issue25605@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-11-12 23:19:18martin.pantersetrecipients: + martin.panter, vstinner, docs@python
2015-11-12 23:19:17martin.pantersetmessageid: <1447370357.97.0.421919860677.issue25605@psf.upfronthosting.co.za>
2015-11-12 23:19:17martin.panterlinkissue25605 messages
2015-11-12 23:19:17martin.pantercreate