Message177916
The immediate fix is to use a 64 bit build. That aside, what change in behavior are you suggesting? (and for 32 bit builds only?)
Should mmap.mmap warn if the file is longer that would be supported?
This could be added to all current versions.
Should it raise in the same circumstance? What is a person *knows* that the file is 'too big' but only wants to access the first gigabyte? Forcing people to explicitly pass the magic number 1073741824 would, to me, effectively be a 3.4-at-best api change.
Perhaps mmap.mmap should be left alone and only the attempt to access beyond the cutoff should raise or warn. (Is the 32-bit cutoff OS specific?) Given that there are multiple access methods and methods that access, and that all accesses are ultimately delegated to the os mmap functions, this could be major nuisance to get right.
Now that disks have grown to larger than a gigabyte, the doc should explicitly mention the memory space issue. |
|
Date |
User |
Action |
Args |
2012-12-22 01:58:17 | terry.reedy | set | recipients:
+ terry.reedy, tim.golden, brian.curtin, schlamar |
2012-12-22 01:58:17 | terry.reedy | set | messageid: <1356141497.0.0.271537080619.issue16743@psf.upfronthosting.co.za> |
2012-12-22 01:58:16 | terry.reedy | link | issue16743 messages |
2012-12-22 01:58:14 | terry.reedy | create | |
|