[Python-checkins] peps: Add TBD about cancellation.
guido.van.rossum
python-checkins at python.org
Sat Dec 15 05:09:53 CET 2012
http://hg.python.org/peps/rev/d68ee9af89e3
changeset: 4613:d68ee9af89e3
user: Guido van Rossum <guido at google.com>
date: Fri Dec 14 20:09:48 2012 -0800
summary:
Add TBD about cancellation.
files:
pep-3156.txt | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -750,6 +750,14 @@
TBD: Be more specific.
+Cancellation
+------------
+
+TBD. When a Task is canceled its coroutine may see an exception at
+any point where it is yielding to the scheduler (i.e., potentially at
+any ``yield from`` operation). We need to spell out which exception
+is raised.
+
Open Issues
===========
@@ -758,7 +766,8 @@
(though not absolutely dictates) 'canceled' (one ell), but outside
the US 'cancelled' (two ells) prevails. PEP 3148, whose author
currently lives in Australia, uses ``cancelled()`` as a method name
- on its Future class.
+ on its Future class. Also, even in the US, 'cancellation' seems
+ to be preferred over cancelation.
- Do we need introspection APIs? E.g. asking for the read callback
given a file descriptor. Or when the next scheduled call is. Or
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list