[issue28970] ctypes.from_buffer counterpart to actively remove the mapping

2022-01-29 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28970] ctypes.from_buffer counterpart to actively remove the mapping

2022-01-19 Thread Irit Katriel
Irit Katriel added the comment: Have you tried Mark Tolonen's suggestion on the stack overflow question, to set the instance variables to None in __exit__? -- nosy: +iritkatriel resolution: -> not a bug status: open -> pending ___ Python tracker

[issue28970] ctypes.from_buffer counterpart to actively remove the mapping

2016-12-14 Thread Hans-Peter Jansen
New submission from Hans-Peter Jansen: In an attempt of using ctypes.from_buffer() to map a structure to a memory mapped file, it is important to destroy the mapping after use, because the mmap won't be resizable or freeable correctly until then. The best approach, I was able to came up with