mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
range() should have been registered as a Sequence.
Needs to be backported to 2.6, 2.7, and 3.0.
This commit is contained in:
parent
afd3045025
commit
9aa53c2f01
2 changed files with 3 additions and 0 deletions
|
@ -546,6 +546,7 @@ class Sequence(Sized, Iterable, Container):
|
|||
|
||||
Sequence.register(tuple)
|
||||
Sequence.register(str)
|
||||
Sequence.register(range)
|
||||
|
||||
|
||||
class ByteString(Sequence):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue