Message265438
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. |
|
Date |
User |
Action |
Args |
2016-05-13 02:31:18 | martin.panter | set | recipients:
+ martin.panter, vstinner, serhiy.storchaka, Brian Mingus |
2016-05-13 02:31:18 | martin.panter | set | messageid: <1463106678.79.0.731048868588.issue24550@psf.upfronthosting.co.za> |
2016-05-13 02:31:18 | martin.panter | link | issue24550 messages |
2016-05-13 02:31:18 | martin.panter | create | |
|