Changes by Richard Oudkerk shibt...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12882
___
___
Richard Oudkerk shibt...@gmail.com added the comment:
Without more information I will close this.
--
resolution: - invalid
stage: - committed/rejected
status: open - pending
___
Python tracker rep...@bugs.python.org
sbt shibt...@gmail.com added the comment:
You are not doing anything to stop the file object being garbage collected (and
therefore closed) before the mmap is created. Try
import os
import mmap
f = open(Certain File,r+)
size = os.path.getsize(Certain File))
data = mmap.mmap(f.fileno(), size)
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12882
___
___
VUIUI nguyen.vu.linh...@gmail.com added the comment:
Botay
--
nosy: +VUIUI
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12882
___
___
Changes by Charles-François Natali neolo...@free.fr:
--
Removed message: http://bugs.python.org/msg143397
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12882
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Is it a crash, or do you get a exception with a nice message?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12882
New submission from Abhijit Bhattacharjee itabhij...@gmail.com:
The following Code causes Python to crash
import os
import mmap
data = mmap.mmap(open(Certain File,r+).fileno(),os.path.getsize(Certain
File))
assuming Certain File is present in the current working directory
--