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 methane
Recipients bmerry, methane, tzickel
Date 2020-03-16.09:43:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAEfz+TwUean-oiwg9ng93GsagEzOQNKF6GtbT8LixxDCmSv7mw@mail.gmail.com>
In-reply-to <1584343053.87.0.253397953794.issue39974@roundup.psfhosted.org>
Content
>
>
>
> perhaps add an if to check if the backing object is really mutable ?
> (Py_buffer.readonly)
>
>

Py_buffer.readonly doesn't mean immutable.  You can create read only buffer
from bytearray too.

Current logic uses PyBytes_CheckExact.  It is safe and enough for most
cases.
History
Date User Action Args
2020-03-16 09:43:11methanesetrecipients: + methane, tzickel, bmerry
2020-03-16 09:43:11methanelinkissue39974 messages
2020-03-16 09:43:11methanecreate