[Python-checkins] python/dist/src/Misc NEWS, 1.1193.2.47, 1.1193.2.48

mwh at users.sourceforge.net mwh at users.sourceforge.net
Thu Apr 7 12:20:03 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14793/Misc

Modified Files:
      Tag: release24-maint
	NEWS 
Log Message:
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!



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1193.2.47
retrieving revision 1.1193.2.48
diff -u -d -r1.1193.2.47 -r1.1193.2.48
--- NEWS	31 Mar 2005 14:16:26 -0000	1.1193.2.47
+++ NEWS	7 Apr 2005 10:19:47 -0000	1.1193.2.48
@@ -12,6 +12,9 @@
 Core and builtins
 -----------------
 
+- Typing Ctrl-C whilst raw_input() was waiting in a build with threads
+  disabled caused a crash.
+
 - Bug #1165306: instancemethod_new allowed the creation of a method
   with im_class == im_self == NULL, which caused a crash when called.
 



More information about the Python-checkins mailing list