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 | eb11eacd68b1a4174589b21809bcab51614951a2 (patch) | |
tree | 53e917155a95e0cf9de3b26a4393eccc9b03f29b /Lib/types.py | |
parent | 5b4dd4b0965143764fcab50c85ec6cd8ad11217b (diff) | |
download | cpython-eb11eacd68b1a4174589b21809bcab51614951a2.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 |