<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_xrange.py, branch v2.5a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_xrange.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_xrange.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-04T17:28:12Z</updated>
<entry>
<title>Make xrange more Py_ssize_t aware, by assuming a Py_ssize_t is always at</title>
<updated>2006-04-04T17:28:12Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-04-04T17:28:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f4d8f390536416c083c687206be8e2687e26c9a3'/>
<id>urn:sha1:f4d8f390536416c083c687206be8e2687e26c9a3</id>
<content type='text'>
least as big as a long. I believe this to be a safe assumption that is being
made in many parts of CPython, but a check could be added.

len(xrange(sys.maxint)) works now, so fix the testsuite's odd exception for
64-bit platforms too. It also fixes 'zip(xrange(sys.maxint), it)' as a
portable-ish (if expensive) alternative to enumerate(it); since zip() now
calls len(), this was breaking on (real) 64-bit platforms. No additional
test was added for that behaviour.
</content>
</entry>
<entry>
<title>Get test to pass on amd64 (opteron).  This is pretty hacky, but</title>
<updated>2004-10-14T03:46:18Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-10-14T03:46:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64fa74df21d1eed5fb90ab6b900c2080ab8df992'/>
<id>urn:sha1:64fa74df21d1eed5fb90ab6b900c2080ab8df992</id>
<content type='text'>
rangeobject.c has an #ifdef that is reached only when LONG_MAX != INT_MAX
</content>
</entry>
<entry>
<title>Bug 1003935:  xrange overflows</title>
<updated>2004-08-08T07:17:39Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-08T07:17:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=feec4533e21a612e9a5b665c27b1a3eb84e04bb3'/>
<id>urn:sha1:feec4533e21a612e9a5b665c27b1a3eb84e04bb3</id>
<content type='text'>
Added XXX comment about why the undocumented PyRange_New() API function
is too broken to be worth the considerable pain of repairing.

Changed range_new() to stop using PyRange_New().  This fixes a variety
of bogus errors.  Nothing in the core uses PyRange_New() now.

Documented that xrange() is intended to be simple and fast, and that
CPython restricts its arguments, and length of its result sequence, to
native C longs.

Added some tests that failed before the patch, and repaired a test that
relied on a bogus OverflowError getting raised.
</content>
</entry>
<entry>
<title>Exercise xrange a bit</title>
<updated>2004-07-08T01:59:55Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-07-08T01:59:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1c0423a2da8c98fad1e82b849fada06426db62f1'/>
<id>urn:sha1:1c0423a2da8c98fad1e82b849fada06426db62f1</id>
<content type='text'>
</content>
</entry>
</feed>
