<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/_bisectmodule.c, branch v2.7a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/_bisectmodule.c?h=v2.7a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/_bisectmodule.c?h=v2.7a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-10-08T18:47:17Z</updated>
<entry>
<title>#3935: properly support list subclasses in the C impl. of bisect.</title>
<updated>2008-10-08T18:47:17Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2008-10-08T18:47:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f3776a17effc7542826e1453b082ca0877722464'/>
<id>urn:sha1:f3776a17effc7542826e1453b082ca0877722464</id>
<content type='text'>
Patch reviewed by Raymond.
</content>
</entry>
<entry>
<title>Finish conversion from int to Py_ssize_t.</title>
<updated>2008-07-24T05:38:48Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2008-07-24T05:38:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=527eee2b32ac73608e2f8ab48000fb0c20512252'/>
<id>urn:sha1:527eee2b32ac73608e2f8ab48000fb0c20512252</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue 3301:  Bisect functions behaved badly when lo was negative.</title>
<updated>2008-07-10T14:03:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2008-07-10T14:03:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3cd1e42dca01308a9f5897ba2efc2aab0bebb661'/>
<id>urn:sha1:3cd1e42dca01308a9f5897ba2efc2aab0bebb661</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More unconsting.</title>
<updated>2006-02-27T17:20:04Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-27T17:20:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=02cbf4ae4baff0dbe373351ebf182cbcfc05d6bd'/>
<id>urn:sha1:02cbf4ae4baff0dbe373351ebf182cbcfc05d6bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use Py_ssize_t for counts and sizes.</title>
<updated>2006-02-16T14:30:23Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-16T14:30:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ad0a4629beac0600c4c4c3167b0d68be57ca674e'/>
<id>urn:sha1:ad0a4629beac0600c4c4c3167b0d68be57ca674e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add const to several API functions that take char *.</title>
<updated>2005-12-10T18:50:16Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2005-12-10T18:50:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af68c874a6803b4e90b616077a602c0593719a1d'/>
<id>urn:sha1:af68c874a6803b4e90b616077a602c0593719a1d</id>
<content type='text'>
In C++, it's an error to pass a string literal to a char* function
without a const_cast().  Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.

I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc.  Predictably, there were a large set of functions that
needed to be fixed as a result of these changes.  The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].

One cast was required as a result of the changes:  A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
</content>
</entry>
<entry>
<title>SF #1313496:  bisect C replacement doesn't accept named args</title>
<updated>2005-10-05T11:39:12Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-10-05T11:39:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc9a951f35c99f21b76c39e8c202cb467a412038'/>
<id>urn:sha1:cc9a951f35c99f21b76c39e8c202cb467a412038</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Any call to insort_{left,right} with a non-list leaked a reference to None</title>
<updated>2004-08-02T13:24:54Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2004-08-02T13:24:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c9f510aed2e41666372579b578fb3c590e346386'/>
<id>urn:sha1:c9f510aed2e41666372579b578fb3c590e346386</id>
<content type='text'>
(or to whatever the 'insert' method chose to return).
</content>
</entry>
<entry>
<title>SF Patch #864863:  Bisect C implementation</title>
<updated>2004-01-05T10:13:35Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-01-05T10:13:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0c4102760c440af3e7b575b0fd27fe25549641a2'/>
<id>urn:sha1:0c4102760c440af3e7b575b0fd27fe25549641a2</id>
<content type='text'>
(Contributed by Dmitry Vasiliev.)
</content>
</entry>
</feed>
