Terry J. Reedy added the comment:

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.

----------
nosy: +terry.reedy
stage:  -> needs patch
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16743>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to