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:
Raymond Hettinger 2002-06-05 23:12:45 +00:00
parent f97b2d7dad
commit c4c453f5ae
4 changed files with 91 additions and 46 deletions

View file

@ -62,7 +62,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
ModuleType = type(sys)
FileType = file
XRangeType = type(xrange(0))
XRangeType = xrange
try:
raise TypeError