Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
- Type "help", "copyright", "credits" or "license" for more information.
- >>>
- import os, mmap
- f = open('etc.test', 'r+b')
- mapped = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_COPY)
- print mapped[0]
- mapped[0] = 'R'
- print mapped.flush() <--- returns 0 (error on Windows)
- mapped.close()
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement