]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add ABC ByteString which unifies bytes and bytearray (but not memoryview).
authorGuido van Rossum <guido@python.org>
Wed, 21 Nov 2007 22:26:24 +0000 (22:26 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 21 Nov 2007 22:26:24 +0000 (22:26 +0000)
commitd05eb0043e597cf2d5c429d0e554fd39364e36b0
tree4c66c5a5b87ab7bdda470f5593ec38cb0a390661
parent831c476169bc2430c8676bd6e3617fdc4f8933d3
Add ABC ByteString which unifies bytes and bytearray (but not memoryview).
There's no ABC for "PEP 3118 style buffer API objects" because there's no
way to recognize these in Python (apart from trying to use memoryview()
on them).
Note that array.array really should be registered as a MutableSequence
but that would require importing it whenever collections is imported.
Lib/_abcoll.py
Lib/test/test_collections.py