[Python-checkins] peps: Add ChildProcessError and ProcessLookupError
antoine.pitrou
python-checkins at python.org
Tue Aug 30 18:37:45 CEST 2011
http://hg.python.org/peps/rev/eebe72bb131f
changeset: 3942:eebe72bb131f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Aug 30 18:35:14 2011 +0200
summary:
Add ChildProcessError and ProcessLookupError
files:
pep-3151.txt | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/pep-3151.txt b/pep-3151.txt
--- a/pep-3151.txt
+++ b/pep-3151.txt
@@ -396,6 +396,12 @@
as a generic timeout exception, replacing ``socket.timeout`` and also useful
for other types of timeout (for example in Lock.acquire())
+* ``ChildProcessError``: operation on a child process failed (ECHILD);
+ this is raised mainly by the wait() family of functions.
+
+* ``ProcessLookupError``: the given process (as identified by, e.g., its
+ process id) doesn't exist (ESRCH).
+
In addition, the following exception class is proposed for inclusion:
* ``ConnectionError``: a base class for ``ConnectionAbortedError``,
@@ -407,6 +413,7 @@
shown::
+-- BlockingIOError EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS
+ +-- ChildProcessError ECHILD
+-- ConnectionError
+-- BrokenPipeError EPIPE, ESHUTDOWN
+-- ConnectionAbortedError ECONNABORTED
@@ -418,6 +425,7 @@
+-- IsADirectoryError EISDIR
+-- NotADirectoryError ENOTDIR
+-- PermissionError EACCES, EPERM
+ +-- ProcessLookupError ESRCH
+-- TimeoutError ETIMEDOUT
Naming
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list