Eryk Sun added the comment:
mmap no longer allows resizing if the object has buffer exports. For example:
>>> m = mmap.mmap(-1, 4096, access=mmap.ACCESS_WRITE)
>>> p = (ctypes.c_char * 4096).from_buffer(m)
>>> m.resize(8192)
Traceback (most recent call last):
File "", lin
Change by Irit Katriel :
--
components: +Library (Lib), ctypes
title: mmap.resize changes memory address of mmap'd region -> [doc] mmap.resize
changes memory address of mmap'd region
versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5
___
Pyt