commit | c4c453f5ae0a245aa0dd59431c323911c47f2735 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Jun 05 23:12:45 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Jun 05 23:12:45 2002 +0000 |
tree | 12218c6354e18f6992ed5e7b6f92cd1a5ef3436d | |
parent | f97b2d7dad06e48e3bc255f16329fda1dc966da4 [diff] [blame] |
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().
diff --git a/Lib/types.py b/Lib/types.py index 0d51743..da0e597 100644 --- a/Lib/types.py +++ b/Lib/types.py
@@ -62,7 +62,7 @@ ModuleType = type(sys) FileType = file -XRangeType = type(xrange(0)) +XRangeType = xrange try: raise TypeError