[Python-checkins] peps: Tweak TODOs.

guido.van.rossum python-checkins at python.org
Thu Jan 24 19:53:48 CET 2013


http://hg.python.org/peps/rev/fca3ee45a828
changeset:   4687:fca3ee45a828
user:        Guido van Rossum <guido at python.org>
date:        Thu Jan 24 10:53:40 2013 -0800
summary:
  Tweak TODOs.

files:
  pep-3156.txt |  6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -982,13 +982,15 @@
 - Transports may need a method that tries to return the address of the
   socket (and another for the peer address).  Although these depend on
   the socket type and there may not always be a socket; then it should
-  return None.
+  return None.  (Alternatively, there could be a method to return the
+  socket itself -- but it is conceivable that a transport implements
+  IP connections without using sockets, and what should it do then?)
 
 - Need to handle os.fork().  (This may be up to the selector classes
   in Tulip's case.)
 
 - Perhaps start_serving() needs a way to pass in an existing socket
-  (e.g. gunicorn would need this).
+  (e.g. gunicorn would need this).  Ditto for create_connection().
 
 - We might introduce explicit locks, though these will be a bit of a
   pain to use, as we can't use the ``with lock: block`` syntax

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


More information about the Python-checkins mailing list