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 Brian Mingus, martin.panter, serhiy.storchaka, vstinner
Date 2016-05-13.02:31:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463106678.79.0.731048868588.issue24550@psf.upfronthosting.co.za>
In-reply-to
Content
Yes 3.5 should do 64-bit reads (if you have enough memory) thanks to revision 0c57aba6b1a3 (Argument Clinic conversion):

>>> os.read(0, 2**32)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError
>>> os.read(0, 2**63)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: Python int too large to convert to C ssize_t

I understand 3.4 is only open to security fixes, not changes like this. But 2.7 is affected:

>>> os.read(0, 2**32)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: signed integer is greater than maximum

I guess this could be considered a bug in 2.7 (not an enhancement), but I’m not really sure.
History
Date User Action Args
2016-05-13 02:31:18martin.pantersetrecipients: + martin.panter, vstinner, serhiy.storchaka, Brian Mingus
2016-05-13 02:31:18martin.pantersetmessageid: <1463106678.79.0.731048868588.issue24550@psf.upfronthosting.co.za>
2016-05-13 02:31:18martin.panterlinkissue24550 messages
2016-05-13 02:31:18martin.pantercreate