mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
Add byteswriter_check_consistency() to check that the bytes/bytearray object can be mutated. It is called by all PyBytesWriter functions. * Add test_thread to PyBytesWriter tests. * _PyBytes_IsMutable() now checks _PyObject_IsUniquelyReferenced(). * Clarify thread safety in PyBytesWriter documentation.
Source files for various builtin objects