You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bytes object is immutable, so constructing a new bytes object from another bytes object doesn't need copying.
However, PyBytes and PyByteArray share PyBytesInner implementation, causing an unnecessary copying of immutable data.
Feature
bytes
object is immutable, so constructing a newbytes
object from anotherbytes
object doesn't need copying.However,
PyBytes
andPyByteArray
sharePyBytesInner
implementation, causing an unnecessary copying of immutable data.CPython:
RustPython:
Python Documentation
https://docs.python.org/3/library/stdtypes.html#bytes-objects
The text was updated successfully, but these errors were encountered: