mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Breaking ground for PEP 3137 implementation:
Get rid of buffer(). Use memoryview() in its place where possible. In a few places, do things a bit different, because memoryview() can't slice (yet).
This commit is contained in:
parent
85c1ba5d74
commit
bae07c9baf
24 changed files with 72 additions and 199 deletions
|
|
@ -491,7 +491,7 @@ class Sequence(metaclass=ABCMeta):
|
|||
|
||||
Sequence.register(tuple)
|
||||
Sequence.register(basestring)
|
||||
Sequence.register(buffer)
|
||||
Sequence.register(memoryview)
|
||||
|
||||
|
||||
class MutableSequence(Sequence):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue