<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Modules/cStringIO.c, branch v2.5b2</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>Remove unnecessary casts from type object initializers.</title>
<updated>2006-03-30T11:58:57+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-03-30T11:58:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=b9b89c2392266cd187f64567242946e2ae3cf00f'/>
<id>b9b89c2392266cd187f64567242946e2ae3cf00f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SF patch #1359365: cStringIO.StringIO.isatty() will raise a ValueError</title>
<updated>2006-03-15T22:13:13+00:00</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2006-03-15T22:13:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=b86f98c6d24a9f3d833931ce343d5ac2c2921818'/>
<id>b86f98c6d24a9f3d833931ce343d5ac2c2921818</id>
<content type='text'>
now if close() has been called before (like file and StringIO.StringIO do)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
now if close() has been called before (like file and StringIO.StringIO do)
</pre>
</div>
</content>
</entry>
<entry>
<title>SF #1444030: Fix several potential defects found by Coverity.</title>
<updated>2006-03-07T15:39:21+00:00</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2006-03-07T15:39:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=dfc47a8b931a2e519e292278fb641e7f6b2d47e7'/>
<id>dfc47a8b931a2e519e292278fb641e7f6b2d47e7</id>
<content type='text'>
(reviewed by Neal Norwitz)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(reviewed by Neal Norwitz)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove UNLESS.</title>
<updated>2006-03-01T23:10:49+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-03-01T23:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=4507ffb1098515465e3364f4dde5df47c5b04e28'/>
<id>4507ffb1098515465e3364f4dde5df47c5b04e28</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Silence gcc (4.0.x) warning about use of uninitialized value.</title>
<updated>2006-03-01T22:15:15+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-03-01T22:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=cc31752f7e505c42b1f627c70614c79250bb1f09'/>
<id>cc31752f7e505c42b1f627c70614c79250bb1f09</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use Py_ssize_t for counts and sizes.</title>
<updated>2006-02-16T14:30:23+00:00</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-16T14:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=452728f8dbedda975adb3d72e36fbc0e09b3f686'/>
<id>452728f8dbedda975adb3d72e36fbc0e09b3f686</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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/commit/?id=26a6348f77faff1083d501950812ea9f68eb9547'/>
<id>26a6348f77faff1083d501950812ea9f68eb9547</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check return result from Py_InitModule*().  This API can fail.</title>
<updated>2006-01-19T06:09:39+00:00</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-01-19T06:09:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=bc26c3d05080a66c1f4070b87bac5188e5dfab85'/>
<id>bc26c3d05080a66c1f4070b87bac5188e5dfab85</id>
<content type='text'>
Probably should be backported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Probably should be backported.
</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/commit/?id=10b7308bdafd13a6e9ec459c09774cc7cd99d97e'/>
<id>10b7308bdafd13a6e9ec459c09774cc7cd99d97e</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>Patches #1298449 and #1298499: Add some missing checks for error</title>
<updated>2005-09-22T09:19:01+00:00</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-09-22T09:19:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=446bbc399cbbd62a7bf7919bb8c82fd5b5e29150'/>
<id>446bbc399cbbd62a7bf7919bb8c82fd5b5e29150</id>
<content type='text'>
returns in cStringIO.c.  Thanks to Andrew Bennetts.

This must be a backport candidate.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
returns in cStringIO.c.  Thanks to Andrew Bennetts.

This must be a backport candidate.
</pre>
</div>
</content>
</entry>
</feed>
