This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients alex, docs@python, eryksun, schmichael
Date 2021-12-01.10:38:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638355104.6.0.509983464799.issue12957@roundup.psfhosted.org>
In-reply-to
Content
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 "<stdin>", line 1, in <module>
    BufferError: mmap can't resize with extant buffers exported.

    >>> del p
    >>> m.resize(8192)
    >>> len(m)
    8192
History
Date User Action Args
2021-12-01 10:38:24eryksunsetrecipients: + eryksun, alex, schmichael, docs@python
2021-12-01 10:38:24eryksunsetmessageid: <1638355104.6.0.509983464799.issue12957@roundup.psfhosted.org>
2021-12-01 10:38:24eryksunlinkissue12957 messages
2021-12-01 10:38:24eryksuncreate