<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Include/cStringIO.h, branch v2.5.4</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>18e165558b24d29e7e0ca501842b9236589b012a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add const to several API functions that take char *.</title>
<updated>2005-12-10T18:50:16+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2005-12-10T18:50:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=af68c874a6803b4e90b616077a602c0593719a1d'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 *.
</pre>
</div>
</content>
</entry>
<entry>
<title>SF bug #670229: doc improvement for cStringIO.h</title>
<updated>2003-01-19T00:45:01+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-19T00:45:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7b8e281997c7f34d5af86856fc66e7e1c4c7b6d7'/>
<id>7b8e281997c7f34d5af86856fc66e7e1c4c7b6d7</id>
<content type='text'>
Gernot Hillier added more detail to the internal API documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Gernot Hillier added more detail to the internal API documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>SF # 607253, header file problems by Ralf W. Grosse-Kunstleve</title>
<updated>2002-10-04T12:43:02+00:00</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-10-04T12:43:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=638437ff4d55102d6de33e2ef337ef55957285a5'/>
<id>638437ff4d55102d6de33e2ef337ef55957285a5</id>
<content type='text'>
Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove function definition from cStringIO.h.</title>
<updated>2002-08-05T18:20:01+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2002-08-05T18:20:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f4d32df19d0f43b7e6b9479a2aac7c80d8c7cf28'/>
<id>f4d32df19d0f43b7e6b9479a2aac7c80d8c7cf28</id>
<content type='text'>
xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed old Digital Creations copyright/license notices (with</title>
<updated>2002-04-04T17:52:50+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-04-04T17:52:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2e1c09c1fd06531a3ce1de5b12ec5c8f771e78e0'/>
<id>2e1c09c1fd06531a3ce1de5b12ec5c8f771e78e0</id>
<content type='text'>
permission from Paul Everitt).  Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
permission from Paul Everitt).  Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #536908: Add missing #include guards/extern "C".</title>
<updated>2002-03-30T08:57:12+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-03-30T08:57:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=522cf1f6fb2dab78702af1f1f06b0855fab75149'/>
<id>522cf1f6fb2dab78702af1f1f06b0855fab75149</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.</title>
<updated>2001-06-09T07:59:43+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-06-09T07:59:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eefa964932f2ed3b27cdac546022efe682896237'/>
<id>eefa964932f2ed3b27cdac546022efe682896237</id>
<content type='text'>
This fixes bug #431557.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes bug #431557.
</pre>
</div>
</content>
</entry>
<entry>
<title>Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,</title>
<updated>2000-07-22T19:25:51+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2000-07-22T19:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7889010731eec703eda68fb32b6805c65e3f1cbf'/>
<id>7889010731eec703eda68fb32b6805c65e3f1cbf</id>
<content type='text'>
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
</pre>
</div>
</content>
</entry>
<entry>
<title>Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either</title>
<updated>2000-07-16T12:04:32+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2000-07-16T12:04:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7e47402264cf87b9bbb61fc9ff610af08add7c7b'/>
<id>7e47402264cf87b9bbb61fc9ff610af08add7c7b</id>
<content type='text'>
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -&gt; "Didn't" and "Didnt" -&gt; "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -&gt; "Didn't" and "Didnt" -&gt; "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
</pre>
</div>
</content>
</entry>
</feed>
