<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/complexobject.c, branch 2.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/complexobject.c?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/complexobject.c?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-10-05T19:42:49Z</updated>
<entry>
<title>[Backport r50679 | neal.norwitz.  This is the last Klocwork bug to be</title>
<updated>2006-10-05T19:42:49Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T19:42:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3e3566937e3597651b06d95aef9b1b75d0f6899d'/>
<id>urn:sha1:3e3566937e3597651b06d95aef9b1b75d0f6899d</id>
<content type='text'>
 backported.]

Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.

The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat.  strncat copies n+1 bytes from src (not dest).

Reported by Klocwork #58.
</content>
</entry>
<entry>
<title>backport patch [ 1118729 ] Error in representation of complex numbers(again)</title>
<updated>2005-09-16T06:42:32Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2005-09-16T06:42:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39871c89275ed0d1cbb67650e3f366bb861edb82'/>
<id>urn:sha1:39871c89275ed0d1cbb67650e3f366bb861edb82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bug #1079011:  Incorrect error message (somewhat)</title>
<updated>2004-12-19T20:47:25Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-12-19T20:47:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=738a70a8d933b87186cd556be3479e548e89bf9c'/>
<id>urn:sha1:738a70a8d933b87186cd556be3479e548e89bf9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix repr for negative imaginary part. Fixes #1013908.</title>
<updated>2004-08-22T21:09:15Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2004-08-22T21:09:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=70aa1f20951a443dcd6387a23a8835bde596055f'/>
<id>urn:sha1:70aa1f20951a443dcd6387a23a8835bde596055f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #774665: Make Python LC_NUMERIC agnostic.</title>
<updated>2004-06-08T18:52:54Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2004-06-08T18:52:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=737ea82a5abd448b3e214b44d7d3c579b77e8155'/>
<id>urn:sha1:737ea82a5abd448b3e214b44d7d3c579b77e8155</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify and speedup uses of Py_BuildValue():</title>
<updated>2003-10-12T19:09:37Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-12T19:09:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8ae468965700fd9900efc28bff8fa2015dae2bef'/>
<id>urn:sha1:8ae468965700fd9900efc28bff8fa2015dae2bef</id>
<content type='text'>
* Py_BuildValue("(OOO)",a,b,c)  --&gt;  PyTuple_Pack(3,a,b,c)
* Py_BuildValue("()",a)         --&gt;  PyTuple_New(0)
* Py_BuildValue("O", a)         --&gt;  Py_INCREF(a)
</content>
</entry>
<entry>
<title>Remove 'e.g.' from error message</title>
<updated>2003-08-30T23:57:36Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-30T23:57:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0970dbab97d82e23ba6a39ef21fe5c02f22bbc48'/>
<id>urn:sha1:0970dbab97d82e23ba6a39ef21fe5c02f22bbc48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>complex_new():  This could leak when the argument was neither string nor</title>
<updated>2003-08-15T01:16:37Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-08-15T01:16:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=465fa3dac49e5bbbb7904c755ff999dd5362c83e'/>
<id>urn:sha1:465fa3dac49e5bbbb7904c755ff999dd5362c83e</id>
<content type='text'>
number.  This accounts for the 2 refcount leaks per test_complex run
Michael Hudson discovered (I figured only I would have the stomach to
look for leaks in floating-point code &lt;wink&gt;).
</content>
</entry>
<entry>
<title>Fix typo in comment.</title>
<updated>2003-06-17T20:22:24Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2003-06-17T20:22:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ecd6c4db2b9d4b2d536b0210ad5aaf23bfc4dee'/>
<id>urn:sha1:5ecd6c4db2b9d4b2d536b0210ad5aaf23bfc4dee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix from Greg Chapman from SF bug #695651: a complex subclass</title>
<updated>2003-03-02T13:51:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-03-02T13:51:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4eadfa2b2eeca190546261149cbf1607488dea0a'/>
<id>urn:sha1:4eadfa2b2eeca190546261149cbf1607488dea0a</id>
<content type='text'>
constructor, when passed a single complex argument, returns the
argument unchanged.  This should be done only for the complex base
class; a complex subclass should of course cast the value to the
subclass in this case.

The fix also revealed a segfault in complex_getnewargs(): the argument
for the Py_BuildValue() format code "D" is the *address* of a
Py_complex struct, not the value.  (This corroborated by the API
documentation.)

I expect this needs to be backported to 2.2.3.
</content>
</entry>
</feed>
