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 RazerM
Recipients RazerM, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-01-30.17:30:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485797426.48.0.513516354213.issue29392@psf.upfronthosting.co.za>
In-reply-to
Content
On 3.5.2 and 3.5.3, but not 3.4.3 or 2.7.10 (Windows 64-bit), the third line causes Python to crash with exit code 0xC0000417.

import msvcrt
fp = open('file.txt', 'w')
msvcrt.locking(fp.fileno(), msvcrt.LK_NBLCK, -1)
print('End')

I came across this in the portalocker module. I don't think -1 is a valid third argument, but it doesn't raise an exception on Python 3.4 or 2.7.
History
Date User Action Args
2017-01-30 17:30:26RazerMsetrecipients: + RazerM, paul.moore, tim.golden, zach.ware, steve.dower
2017-01-30 17:30:26RazerMsetmessageid: <1485797426.48.0.513516354213.issue29392@psf.upfronthosting.co.za>
2017-01-30 17:30:26RazerMlinkissue29392 messages
2017-01-30 17:30:26RazerMcreate