mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.
Also, added more regression tests to cover the new type and test its conformity with range().
This commit is contained in:
parent
f97b2d7dad
commit
c4c453f5ae
4 changed files with 91 additions and 46 deletions
|
@ -62,7 +62,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
|
|||
|
||||
ModuleType = type(sys)
|
||||
FileType = file
|
||||
XRangeType = type(xrange(0))
|
||||
XRangeType = xrange
|
||||
|
||||
try:
|
||||
raise TypeError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue