peps: 922c0fe6ebee (original) (raw)
Mercurial > peps
changeset 5047:922c0fe6ebee
Get rid of Future.running(); see bug 18699.
Guido van Rossum guido@python.org | |
---|---|
date | Fri, 09 Aug 2013 17:26:53 -0700 |
parents | 704d80be308a |
children | e6979b5e14fa |
files | pep-3156.txt |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-)[+] [-] pep-3156.txt 8 |
line wrap: on
line diff
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -728,7 +728,7 @@ Signal callbacks
sig
must be a valid sigal number defined in the signal
module. If the signal cannot be handled this raises an exception:
ValueError
if it is not a valid signal or if it is an
- uncatchable signal (e.g.
SIGKILL
),RuntimeError
if this particular event loop instance cannot handle signals (since signals are global per process, only an event loop associated with the main thread can handle signals). @@ -817,9 +817,6 @@ public API is as follows, indicating the
cancelled()
. ReturnsTrue
if the Future was cancelled. --running()
. Always returnsFalse
. Difference with PEP 3148:- there is no "running" state. -
done()
. ReturnsTrue
if the Future is done. Note that a cancelled Future is considered done too (here and everywhere). @@ -861,7 +858,8 @@ public API is as follows, indicating the callbacks. Difference with PEP 3148: This is a public API. The internal methodset_running_or_notify_cancel()
is not -supported; there is no way to set the running state. +supported; there is no way to set the running state. Likewise, +the methodrunning()
is not supported. The following exceptions are defined: