[Python-checkins] peps: PEP 475: don't deprecate signal.siginterrupt() anymore

victor.stinner python-checkins at python.org
Tue Jul 29 23:16:11 CEST 2014


http://hg.python.org/peps/rev/13cd761504fd
changeset:   5512:13cd761504fd
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jul 29 23:16:04 2014 +0200
summary:
  PEP 475: don't deprecate signal.siginterrupt() anymore

files:
  pep-0475.txt |  22 +---------------------
  1 files changed, 1 insertions(+), 21 deletions(-)


diff --git a/pep-0475.txt b/pep-0475.txt
--- a/pep-0475.txt
+++ b/pep-0475.txt
@@ -14,7 +14,7 @@
 ========
 
 Retry system calls failing with the ``EINTR`` error and recompute
-timeout if needed. Deprecate the ``signal.siginterrupt()`` function.
+timeout if needed.
 
 
 Rationale
@@ -173,23 +173,6 @@
 doesn't recompute the timeout yet.
 
 
-Deprecate siginterrupt()
-------------------------
-
-The function ``signal.siginterrupt()`` becomes useless with this PEP,
-it should be deprecated. When ``signal.siginterrupt(signum, False)``
-is used, some system calls don't fail with ``EINTR`` when a signal is
-received. Python cannot call its signal handler and interrupt the
-system call.
-
-The function ``signal.siginterrupt()`` will be deprecated in Python
-3.5.
-
-In Python 3.6, calling ``signal.siginterrupt(signum, False)`` will
-raise an exception, whereas ``signal.siginterrupt(signum, True)`` will
-only emit the deprecation warning.
-
-
 Backward Compatibility
 ======================
 
@@ -204,9 +187,6 @@
 For example, use a signal handle which raises an exception, or use a
 wakeup file descriptor.
 
-Applications should not call ``signal.siginterrupt(signum, False)``
-anymore, since this call will raise an exception in Python 3.6.
-
 For applications using event loops, ``signal.set_wakeup_fd()`` is the
 recommanded option to handle signals. The signal handler writes signal
 numbers into the file descriptor and the event loop is awaken to read

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list