<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_long.py, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_long.py?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_long.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-09-23T08:06:40Z</updated>
<entry>
<title>SF bug #513866:  Float/long comparison anomaly.</title>
<updated>2004-09-23T08:06:40Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-09-23T08:06:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=307fa78107c39ffda1eb4ad18201d25650354c4e'/>
<id>urn:sha1:307fa78107c39ffda1eb4ad18201d25650354c4e</id>
<content type='text'>
When an integer is compared to a float now, the int isn't coerced to float.
This avoids spurious overflow exceptions and insane results.  This should
compute correct results, without raising spurious exceptions, in all cases
now -- although I expect that what happens when an int/long is compared to
a NaN is still a platform accident.

Note that we had potential problems here even with "short" ints, on boxes
where sizeof(long)==8.  There's #ifdef'ed code here to handle that, but
I can't test it as intended.  I tested it by changing the #ifdef to
trigger on my 32-bit box instead.

I suppose this is a bugfix candidate, but I won't backport it.  It's
long-winded (for speed) and messy (because the problem is messy).  Note
that this also depends on a previous 2.4 patch that introduced
_Py_SwappedOp[] as an extern.
</content>
</entry>
<entry>
<title>Changed Karatsuba cutoff to match current reality.</title>
<updated>2004-08-30T23:18:23Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-30T23:18:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=daec961e091b76b1329077f505aa8db92a027002'/>
<id>urn:sha1:daec961e091b76b1329077f505aa8db92a027002</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test_float_overflow(): make shuge (added last week) a little less</title>
<updated>2003-02-03T15:25:01Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-02-03T15:25:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7aa56c9a7f3b23fa5634ae62ae881a0c94f21ab6'/>
<id>urn:sha1:7aa56c9a7f3b23fa5634ae62ae881a0c94f21ab6</id>
<content type='text'>
huge.  On older Linux systems, the C library's strtod() apparently
gives up before seeing the end of the string when it sees so many
digits that it thinks the result must be Infinity.  (It is wrong, BTW
-- there could be an "e-10000" hiding behind 10,000 digits.)  The
shorter shuge still tests what it's testing, without relying on
strtod() doing a super job.
</content>
</entry>
<entry>
<title>Fix SF bug# 676155, RuntimeWarning with tp_compare</title>
<updated>2003-01-28T19:21:24Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-01-28T19:21:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=abcb0c03ade3cee52b71362f57b16af3e00c743b'/>
<id>urn:sha1:abcb0c03ade3cee52b71362f57b16af3e00c743b</id>
<content type='text'>
Check return value of PyLong_AsDouble(), it can return an error.
</content>
</entry>
<entry>
<title>Change int() so that passing a string, unicode, float or long argument</title>
<updated>2002-11-19T20:49:15Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2002-11-19T20:49:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f171540ab8d816a996c34db3f6aa4bf9cf147fba'/>
<id>urn:sha1:f171540ab8d816a996c34db3f6aa4bf9cf147fba</id>
<content type='text'>
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.

This fixes SF bug http://www.python.org/sf/635115
</content>
</entry>
<entry>
<title>Added a test specifically to tickle Karatsuba; it costs no appreciable</title>
<updated>2002-08-13T21:06:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-13T21:06:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7f270ba8608029daac16824ff3fa1cf2be794482'/>
<id>urn:sha1:7f270ba8608029daac16824ff3fa1cf2be794482</id>
<content type='text'>
runtime.
</content>
</entry>
<entry>
<title>test_division():  Added one larger digits value, to ensure that the</title>
<updated>2002-08-13T02:24:25Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-13T02:24:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d0876b859d3789e7ec8c9ec18f4a04db3fc097c0'/>
<id>urn:sha1:d0876b859d3789e7ec8c9ec18f4a04db3fc097c0</id>
<content type='text'>
"lopsided Karatsuba" driver also gets some exercise.
</content>
</entry>
<entry>
<title>Machines-- and Python --are a lot faster in relevant ways since this</title>
<updated>2002-08-13T02:17:11Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-13T02:17:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28b0e2a7f826abfdcf92feb045bf5ddd3de632a1'/>
<id>urn:sha1:28b0e2a7f826abfdcf92feb045bf5ddd3de632a1</id>
<content type='text'>
test was written.  So boosted the number of "digits" this generates, and
also beefed up the "* / divmod" test to tickle numbers big enough to
trigger the Karatsuba algorithm.  It takes about 2 seconds now on my box.
</content>
</entry>
<entry>
<title>Get rid of relative imports in all unittests.  Now anything that</title>
<updated>2002-07-23T19:04:11Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04f357cffef6d764f2f0ff2671dabde75ec250d1'/>
<id>urn:sha1:04f357cffef6d764f2f0ff2671dabde75ec250d1</id>
<content type='text'>
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
</content>
</entry>
<entry>
<title>Format strings (tuples,) appropriately</title>
<updated>2002-04-01T19:01:39Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-04-01T19:01:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05c09d08f9b52e7abceb5bb32295c9d3ec3612ef'/>
<id>urn:sha1:05c09d08f9b52e7abceb5bb32295c9d3ec3612ef</id>
<content type='text'>
</content>
</entry>
</feed>
