<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/readline.c, branch v2.5a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/readline.c?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/readline.c?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-01-19T06:09:39Z</updated>
<entry>
<title>Check return result from Py_InitModule*().  This API can fail.</title>
<updated>2006-01-19T06:09:39Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-01-19T06:09:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1ac754fa10f5d199d19911e21185d0970cb3073f'/>
<id>urn:sha1:1ac754fa10f5d199d19911e21185d0970cb3073f</id>
<content type='text'>
Probably should be backported.
</content>
</entry>
<entry>
<title>Fix parse errors in readline module when compiling without threads.</title>
<updated>2005-09-29T13:40:49Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2005-09-29T13:40:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e677adc43acf9176ffe81b9956aeb7a643258239'/>
<id>urn:sha1:e677adc43acf9176ffe81b9956aeb7a643258239</id>
<content type='text'>
</content>
</entry>
<entry>
<title>In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,</title>
<updated>2005-04-07T10:11:19Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-04-07T10:11:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e3afc598bc62c6ad46c56feec3f18cf8131c91c6'/>
<id>urn:sha1:e3afc598bc62c6ad46c56feec3f18cf8131c91c6</id>
<content type='text'>
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python.  Argh!

Backport candidate.
</content>
</entry>
<entry>
<title>Fixes for</title>
<updated>2005-03-30T11:21:53Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-03-30T11:21:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da6242c84498caaf147d944529877cb3dba4f674'/>
<id>urn:sha1:da6242c84498caaf147d944529877cb3dba4f674</id>
<content type='text'>
[ 1166660 ] The readline module can cause python to segfault

It seems to me that the code I'm rewriting here attempted to call any
user-supplied hook functions using the thread state of the thread that
called the hook-setting function, as opposed to that of the thread
that is currently executing.  This doesn't work, in general.

Fix this by using the PyGILState API (It wouldn't be that hard to
define a dummy version of said API when #ifndef WITH_THREAD, would
it?).

Also, check the conversion to integer of the return value of a hook
function for errors (this problem was mentioned in the ipython bug
report linked to in the above bug).
</content>
</entry>
<entry>
<title>Be a bit more accurate.</title>
<updated>2005-03-30T10:09:12Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-03-30T10:09:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a8c3142e2bc122386cd1502124cb7103a217386'/>
<id>urn:sha1:9a8c3142e2bc122386cd1502124cb7103a217386</id>
<content type='text'>
</content>
</entry>
<entry>
<title>I don't think it's particularly accurate to say Guido is maintaining</title>
<updated>2005-03-30T09:38:12Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2005-03-30T09:38:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b47039f66bd21327d12070bfd220d25e516e2381'/>
<id>urn:sha1:b47039f66bd21327d12070bfd220d25e516e2381</id>
<content type='text'>
this module any more.
</content>
</entry>
<entry>
<title>Patch #1093585: raise a ValueError for negative history items in</title>
<updated>2005-02-27T20:33:25Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2005-02-27T20:33:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9533e3402433245489bcf55adf1e134ca71b4798'/>
<id>urn:sha1:9533e3402433245489bcf55adf1e134ca71b4798</id>
<content type='text'>
remove_history and replace_history. Will backport to 2.4.
</content>
</entry>
<entry>
<title>Rename a static variable "history_length" to "_history_length".</title>
<updated>2004-11-25T04:04:20Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-11-25T04:04:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7a8173a477d69269d8f4b1f80253310b07a088d2'/>
<id>urn:sha1:7a8173a477d69269d8f4b1f80253310b07a088d2</id>
<content type='text'>
GNU readline exports a global variable that has such a name already
and the collision makes gcc4 doesn't compile the source.
</content>
</entry>
<entry>
<title>This is Michiel de Hoon's patch, as attached to the bug report:</title>
<updated>2004-10-07T13:46:33Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2004-10-07T13:46:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8da2b01c3fb730c384cdc4e329933ee16cfe3497'/>
<id>urn:sha1:8da2b01c3fb730c384cdc4e329933ee16cfe3497</id>
<content type='text'>
[ 1030629 ] PyOS_InputHook broken

with a couple of utterly inconsequential changes by me.
</content>
</entry>
<entry>
<title>SF #1015517, get readline to compile with older compilers</title>
<updated>2004-08-25T01:20:18Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-08-25T01:20:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1fa040ba73db700debd9f5079fa2083a0937f8b6'/>
<id>urn:sha1:1fa040ba73db700debd9f5079fa2083a0937f8b6</id>
<content type='text'>
</content>
</entry>
</feed>
