diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-01-10 14:34:05 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2020-01-10 14:34:05 (GMT) |
commit | c39b52f1527868c7ada9385669c38edf98858921 (patch) | |
tree | dff7a3c55d0d8c5f01bcb20bc66fac69aa2cd6dd /Doc/whatsnew/3.9.rst | |
parent | 4c53e63cc966f98e141a09bc435b9f9c713b152d (diff) | |
download | cpython-c39b52f1527868c7ada9385669c38edf98858921.zip cpython-c39b52f1527868c7ada9385669c38edf98858921.tar.gz cpython-c39b52f1527868c7ada9385669c38edf98858921.tar.bz2 |
bpo-39259: poplib now rejects timeout = 0 (GH-17912)
poplib.POP3 and poplib.POP3_SSL now raise a ValueError
if the given timeout for their constructor is zero to
prevent the creation of a non-blocking socket.
Diffstat (limited to 'Doc/whatsnew/3.9.rst')
-rw-r--r-- | Doc/whatsnew/3.9.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index ea6d8f5..3320b7c 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -187,6 +187,13 @@ Exposed the Linux-specific :func:`os.pidfd_open` (:issue:`38692`) and :data:`os.P_PIDFD` (:issue:`38713`) for process management with file descriptors. +poplib +------ + +:class:`~poplib.POP3` and :class:`~poplib.POP3_SSL` now raise a :class:`ValueError` +if the given timeout for their constructor is zero to prevent the creation of +a non-blocking socket. (Contributed by Dong-hee Na in :issue:`39259`.) + threading --------- |