[Python-checkins] peps: Make fd methods optional.

guido.van.rossum python-checkins at python.org
Thu Dec 13 16:54:14 CET 2012


http://hg.python.org/peps/rev/6594476717d5
changeset:   4603:6594476717d5
user:        Guido van Rossum <guido at google.com>
date:        Thu Dec 13 07:54:08 2012 -0800
summary:
  Make fd methods optional.

files:
  pep-3156.txt |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -175,6 +175,11 @@
   later time in a threadsafe manner, you can use
   ``ev.call_soon_threadsafe(ev.call_later, when, callback, *args)``.)
 
+The following methods for registering callbacks for file descriptors
+are optional.  The default implementation provides them but the user
+normally doesn't use these directly -- they are used by the transport
+implementations exclusively:
+
 - ``add_reader(fd, callback, *args)``.  Arrange for
   ``callback(*args)`` to be called whenever file descriptor ``fd`` is
   ready for reading.  Returns a ``DelayedCall`` object which can be

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


More information about the Python-checkins mailing list