mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
Backport 69934: Register xrange() as a Sequence.
This commit is contained in:
parent
54fba82310
commit
9293eb965a
3 changed files with 6 additions and 0 deletions
|
@ -519,6 +519,7 @@ class Sequence(Sized, Iterable, Container):
|
|||
Sequence.register(tuple)
|
||||
Sequence.register(basestring)
|
||||
Sequence.register(buffer)
|
||||
Sequence.register(xrange)
|
||||
|
||||
|
||||
class MutableSequence(Sequence):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue