]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add timeout mode. Clarify gnu_getopt.
authorGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 12:40:52 +0000 (12:40 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 12:40:52 +0000 (12:40 +0000)
Misc/NEWS

index 2d710677b5a01300020bc8d0fad3f6f9a7c19262..4523d3cfe05560a466a93e9c1191fffd452366eb 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -130,7 +130,13 @@ Extension modules
 
 Library
 
-- getopt.gnu_getopt was added.
+- Sockets now support timeout mode.  After s.settimeout(T), where T is
+  a float expressing seconds, subsequent operations raise an exception
+  if they cannot be completed within T seconds.  To disable timeout
+  mode, use s.settimeout(None).
+
+- getopt.gnu_getopt was added.  This supports GNU-style option
+  processing, where options can be mixed with non-option arguments.
 
 - Stop using strings for exceptions.  String objects used for
   exceptions are now classes deriving from Exception.  The objects