diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-05 23:12:45 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-05 23:12:45 +0000 |
commit | c4c453f5ae0a245aa0dd59431c323911c47f2735 (patch) | |
tree | 12218c6354e18f6992ed5e7b6f92cd1a5ef3436d /Lib/types.py | |
parent | f97b2d7dad06e48e3bc255f16329fda1dc966da4 (diff) | |
download | cpython-git-c4c453f5ae0a245aa0dd59431c323911c47f2735.tar.gz |
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().
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/types.py b/Lib/types.py index 0d5174314c..da0e597487 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -62,7 +62,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType ModuleType = type(sys) FileType = file -XRangeType = type(xrange(0)) +XRangeType = xrange try: raise TypeError |