diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-18 22:15:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-18 22:15:41 (GMT) |
commit | 39a54ba63850e081a4a5551a773df5b4d5b1d3cd (patch) | |
tree | d3d67a17c4f4a5c881f2288603dad435ac46829f /Doc/whatsnew/3.11.rst | |
parent | 0860b26a4f7abeb61aad9f4b96de8e78eed8c12a (diff) | |
download | cpython-39a54ba63850e081a4a5551a773df5b4d5b1d3cd.zip cpython-39a54ba63850e081a4a5551a773df5b4d5b1d3cd.tar.gz cpython-39a54ba63850e081a4a5551a773df5b4d5b1d3cd.tar.bz2 |
gh-74166: Add option to get all errors from socket.create_connection (GH-91586)
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 27a5a0f..baff687 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -357,6 +357,10 @@ socket * Add CAN Socket support for NetBSD. (Contributed by Thomas Klausner in :issue:`30512`.) +* :meth:`~socket.create_connection` has an option to raise, in case of + failure to connect, an :exc:`ExceptionGroup` containing all errors + instead of only raising the last error. + (Contributed by Irit Katriel in :issue:`29980`). sqlite3 ------- |