[Python-3000-checkins] r61659 - python/branches/py3k/Lib/test/test_winsound.py
skip at pobox.com
skip at pobox.com
Fri Mar 21 04:04:25 CET 2008
>>>>> "Brett" == Brett Cannon <brett at python.org> writes:
Brett> On Wed, Mar 19, 2008 at 8:02 PM, amaury.forgeotdarc
>> Log:
>> Another 2.6-ism in test file
...
>> - for i in xrange(100, 2000, 100):
>> + for i in range(100, 2000, 100):
Brett> How is this a 2.6ism?
3.0 spells it "range". "xrange" is gone:
$ ./python.exe
Python 3.0a3+ (py3k:61686, Mar 20 2008, 22:00:17)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> xrange
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'xrange' is not defined
>>> range
<type 'range'>
Skip
More information about the Python-3000-checkins
mailing list