mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Add timeout mode. Clarify gnu_getopt.
This commit is contained in:
parent
715b861d94
commit
5033c8e309
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user