<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_b1.py, branch 2.2</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_b1.py?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_b1.py?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-01-28T19:40:35Z</updated>
<entry>
<title>backport:</title>
<updated>2003-01-28T19:40:35Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-01-28T19:40:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89d08cbd397537986ee3cfceb2a1afa3189f43ce'/>
<id>urn:sha1:89d08cbd397537986ee3cfceb2a1afa3189f43ce</id>
<content type='text'>
Fix SF bug# 676155, RuntimeWarning with tp_compare

Check return value of PyLong_AsDouble(), it can return an error.
</content>
</entry>
<entry>
<title>The</title>
<updated>2002-10-08T21:03:26Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-10-08T21:03:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f8e943f193a3b34f056d7b3a79b794d3b747685f'/>
<id>urn:sha1:f8e943f193a3b34f056d7b3a79b794d3b747685f</id>
<content type='text'>
        list(xrange(sys.maxint / 4))
test.  Changed 4 to 2.

The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow.  As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes.  Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.

Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.
</content>
</entry>
<entry>
<title>Backport 1.51 and 1.54 from trunk.</title>
<updated>2002-09-23T20:59:28Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-09-23T20:59:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fb3a921c4270bf2cd75ed6f7265da23e501f387a'/>
<id>urn:sha1:fb3a921c4270bf2cd75ed6f7265da23e501f387a</id>
<content type='text'>
1.51:
Bug #556025: list(xrange(1e9)) --&gt; seg fault

Close the bug report again -- this time for Cygwin due to a newlib bug.
See the following for the details:

	http://sources.redhat.com/ml/newlib/2002/msg00369.html

Note that this commit is only a documentation (i.e., comment) change.

1.54:
The list(xrange(sys.maxint / 4)) test blew up on 64-bit platforms.
Because ob_size is a 32-bit int but sys.maxint is LONG_MAX which is a
64-bit value, there's no way to make this test succeed on a 64-bit
platform.  So just skip it when sys.maxint isn't 0x7fffffff.
</content>
</entry>
<entry>
<title>Closes: #556025 seg fault when doing list(xrange(1e9))</title>
<updated>2002-05-23T13:02:37Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-05-23T13:02:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=81a09965d7131f25cc15fa4dca92e842e87e55d1'/>
<id>urn:sha1:81a09965d7131f25cc15fa4dca92e842e87e55d1</id>
<content type='text'>
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems.  I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)
</content>
</entry>
<entry>
<title>backport tim_one's patch:</title>
<updated>2002-04-18T02:19:46Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-04-18T02:19:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a2e92fcbf2121849fa5dc2f2232a0fdcb895ccf1'/>
<id>urn:sha1:a2e92fcbf2121849fa5dc2f2232a0fdcb895ccf1</id>
<content type='text'>
SF bug 543840: complex(string) accepts strings with \0
complex_subtype_from_string():  this stopped parsing at the first 0
byte, as if that were the end of the input string.
</content>
</entry>
<entry>
<title>backport gvanrossum's checkin of</title>
<updated>2002-02-28T10:14:24Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-02-28T10:14:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bbb5c47d7394789dfc45d4172d46780745f0498c'/>
<id>urn:sha1:bbb5c47d7394789dfc45d4172d46780745f0498c</id>
<content type='text'>
    revision 1.44 of test_b1.py
    revision 1.31 of test_b2.py

SF patch #523169, by Samuele Pedroni.

There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple.  Now there are.
</content>
</entry>
<entry>
<title>Ensure that complex() only accepts a string argument as the first arg,</title>
<updated>2001-12-13T19:52:22Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-12-13T19:52:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=526c7a0101d826fdab8b1ef5a757e1eae351687c'/>
<id>urn:sha1:526c7a0101d826fdab8b1ef5a757e1eae351687c</id>
<content type='text'>
and only if there is no second arg.
This closes SF patch #479551.
</content>
</entry>
<entry>
<title>Additional coverage tests by Neil Norwitz.</title>
<updated>2001-12-11T04:37:34Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-11T04:37:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=29d260670eff2d04b98d737ad14928163602a41a'/>
<id>urn:sha1:29d260670eff2d04b98d737ad14928163602a41a</id>
<content type='text'>
(SF patch #491418, #491420, #491421.)
</content>
</entry>
<entry>
<title>The first batch of changes recommended by the fixdiv tool.  These are</title>
<updated>2001-09-04T19:14:14Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-04T19:14:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54e54c6877329e105406c48490f218faff59db39'/>
<id>urn:sha1:54e54c6877329e105406c48490f218faff59db39</id>
<content type='text'>
mostly changes of / operators into //.  Once or twice I did more or
less than recommended.
</content>
</entry>
<entry>
<title>Use raw-unicode-escape for the tests that require it.</title>
<updated>2001-08-17T22:08:34Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-17T22:08:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=10d72552495a1967af7174f6ed52eb3340799c76'/>
<id>urn:sha1:10d72552495a1967af7174f6ed52eb3340799c76</id>
<content type='text'>
</content>
</entry>
</feed>
