diff options
| author | Dong-hee Na <donghee.na92@gmail.com> | 2020-01-14 16:49:59 +0900 |
|---|---|---|
| committer | Victor Stinner <vstinner@python.org> | 2020-01-14 08:49:59 +0100 |
| commit | 62e3973395fb9fab2eb8f651bcd0fea4e695e1cf (patch) | |
| tree | 63c213ab1284ed6e7b28f858e7fecac4593f6246 /Doc/library | |
| parent | 2de064e6305008d16571a21e5f0c178e62e81f27 (diff) | |
| download | cpython-git-62e3973395fb9fab2eb8f651bcd0fea4e695e1cf.tar.gz | |
bpo-39259: smtp.SMTP/SMTP_SSL now reject timeout = 0 (GH-17958)
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/smtplib.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst index 6176c35a0e..f6ac123823 100644 --- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -70,6 +70,9 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions). .. versionadded:: 3.5 The SMTPUTF8 extension (:rfc:`6531`) is now supported. + .. versionchanged:: 3.9 + If the *timeout* parameter is set to be zero, it will raise a + :class:`ValueError` to prevent the creation of a non-blocking socket .. class:: SMTP_SSL(host='', port=0, local_hostname=None, keyfile=None, \ certfile=None [, timeout], context=None, \ @@ -108,6 +111,9 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions). :func:`ssl.create_default_context` select the system's trusted CA certificates for you. + .. versionchanged:: 3.9 + If the *timeout* parameter is set to be zero, it will raise a + :class:`ValueError` to prevent the creation of a non-blocking socket .. class:: LMTP(host='', port=LMTP_PORT, local_hostname=None, source_address=None) |
