Staging
v0.5.1
https://github.com/python/cpython
Revision d8506df229631b34ed720bcf09df9ae9e32022d5 authored by Martin v. Löwis on 06 October 2008, 15:19:21 UTC, committed by Martin v. Löwis on 06 October 2008, 15:19:21 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66814 | martin.v.loewis | 2008-10-06 17:15:40 +0200 (Mo, 06 Okt 2008) | 3 lines

  Issue #4014: Don't claim that Python has an Alpha release status, in addition
  to claiming it is Mature.
........
1 parent e1cb87e
Raw File
Tip revision: d8506df229631b34ed720bcf09df9ae9e32022d5 authored by Martin v. Löwis on 06 October 2008, 15:19:21 UTC
Merged revisions 66814 via svnmerge from
Tip revision: d8506df
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top