From 5033c8e309b378f8f1f8d3b16f7c7edb6aa5bf9a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 7 Jun 2002 12:40:52 +0000 Subject: Add timeout mode. Clarify gnu_getopt. --- Misc/NEWS | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 2d71067..4523d3c 100644 --- 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 -- cgit v0.12