Staging
v0.5.1
https://github.com/python/cpython
Revision d9bae8b95a4e998c7c34d31b63dc47de85ffa359 authored by Guido van Rossum on 22 January 2001, 16:01:24 UTC, committed by Guido van Rossum on 22 January 2001, 16:01:24 UTC
non-numeric ones, so 4 < None again in the 'map' test.
1 parent 8f9143d
Raw File
Tip revision: d9bae8b95a4e998c7c34d31b63dc47de85ffa359 authored by Guido van Rossum on 22 January 2001, 16:01:24 UTC
Numeric-smelling objects now once again compare smaller than
Tip revision: d9bae8b
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