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) ---------- nosy: +sbt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12882> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com