]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport my recent raw_input() vs no threads build vs SIGINT argh:
authorMichael W. Hudson <mwh@python.net>
Thu, 7 Apr 2005 10:19:47 +0000 (10:19 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 7 Apr 2005 10:19:47 +0000 (10:19 +0000)
commit52cba65d1a720a7062660b0d98b04fd3212a6aff
tree7ec3966f165a8892562c6b08996f8bc652f46bed
parentb3509dbe6a7d28fedb82c0a892a84391d448e1c7
Backport my recent raw_input() vs no threads build vs SIGINT argh:

In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
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!
Misc/NEWS
Modules/readline.c
Parser/myreadline.c