From: Fred Drake Date: Wed, 12 May 2004 03:22:57 +0000 (+0000) Subject: backport 1.17, 1.18 from the trunk: PyErr_SetInterrupt not Obsolete X-Git-Tag: v2.3.4c1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6f36ad4fdc5eb9cefce1c63099424b423a7c499;p=thirdparty%2FPython%2Fcpython.git backport 1.17, 1.18 from the trunk: PyErr_SetInterrupt not Obsolete (closes SF patch #919299) --- diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index f98b644896c2..5236a72c103d 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -299,12 +299,14 @@ for each thread. \end{cfuncdesc} \begin{cfuncdesc}{void}{PyErr_SetInterrupt}{} - This function is obsolete. It simulates the effect of a + This function simulates the effect of a \constant{SIGINT}\ttindex{SIGINT} signal arriving --- the next time \cfunction{PyErr_CheckSignals()} is called, \withsubitem{(built-in exception)}{\ttindex{KeyboardInterrupt}} \exception{KeyboardInterrupt} will be raised. It may be called without holding the interpreter lock. + % XXX This was described as obsolete, but is used in + % thread.interrupt_main() (used from IDLE), so it's still needed. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyErr_NewException}{char *name,