<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/modsupport.h, branch v2.5c2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/modsupport.h?h=v2.5c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/modsupport.h?h=v2.5c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-18T00:29:29Z</updated>
<entry>
<title>C++ compile cleanup: proper declaration of _Py_BuildValue_SizeT</title>
<updated>2006-04-18T00:29:29Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2006-04-18T00:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3fca46362798d3a5bcf1494f405b79fb4bdfb62a'/>
<id>urn:sha1:3fca46362798d3a5bcf1494f405b79fb4bdfb62a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make Py_BuildValue, PyObject_CallFunction and</title>
<updated>2006-04-14T09:08:42Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-14T09:08:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5cb6936672a1410f5502d754570bc548064f9dc4'/>
<id>urn:sha1:5cb6936672a1410f5502d754570bc548064f9dc4</id>
<content type='text'>
PyObject_CallMethod aware of PY_SSIZE_T_CLEAN.
</content>
</entry>
<entry>
<title>aargh. Don't make last minute re-organisations before checkin!</title>
<updated>2006-04-04T12:40:38Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2006-04-04T12:40:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=36458ee501ae9588ca510c4e296726b404b6fb2e'/>
<id>urn:sha1:36458ee501ae9588ca510c4e296726b404b6fb2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PyAPI_FUNC() the PyArg_.*SizeT forms. Without this, cygwin has hysterics.</title>
<updated>2006-04-04T12:27:20Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2006-04-04T12:27:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46854bc7e4784931a98748011a1181c88ef50cdc'/>
<id>urn:sha1:46854bc7e4784931a98748011a1181c88ef50cdc</id>
<content type='text'>
(see buildbot)
</content>
</entry>
<entry>
<title>Use Py_ssize_t for PyArg_UnpackTuple arguments.</title>
<updated>2006-03-01T04:06:10Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-03-01T04:06:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=762467475d944f67ac20bf23c6c5144a6e39feae'/>
<id>urn:sha1:762467475d944f67ac20bf23c6c5144a6e39feae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Martin owns PEP 353 and did most of the work</title>
<updated>2006-02-28T20:03:28Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-02-28T20:03:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e42e405e082f98a5ae109bafa1f1529487464b29'/>
<id>urn:sha1:e42e405e082f98a5ae109bafa1f1529487464b29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>from __future__ import with_statement addon for 'with', mostly written by</title>
<updated>2006-02-28T19:02:24Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-02-28T19:02:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=34aa7ba11431a46e72ec30ee7528f2e52adbed7f'/>
<id>urn:sha1:34aa7ba11431a46e72ec30ee7528f2e52adbed7f</id>
<content type='text'>
Neal.
</content>
</entry>
<entry>
<title>Revert backwards-incompatible const changes.</title>
<updated>2006-02-27T16:46:16Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-27T16:46:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15e62742fad688b026ba80bf17d1345c4cbd423b'/>
<id>urn:sha1:15e62742fad688b026ba80bf17d1345c4cbd423b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>urn:sha1:18e165558b24d29e7e0ca501842b9236589b012a</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>
</feed>
