[issue21797] mmap read of single byte accesses more that just that byte
Jesús Cea Avión
report at bugs.python.org
Wed Jun 18 04:48:25 CEST 2014
Jesús Cea Avión added the comment:
You could even use "ctypes" to access the underlining "mmap" OS syscall. But accessing individual bytes using native python is not guaranteed to work because python is too high level for that. For instance, it could read 64 bits (a word) to only use 8 at the end.
I recommend you to write a tiny C module or investigate "ctypes"/"CFFI" pointer access to a native mmap-ed area.
Good luck.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21797>
_______________________________________
More information about the Python-bugs-list
mailing list