mirror of
https://github.com/python/cpython.git
synced 2025-10-01 04:42:10 +00:00
bpo-33559: Document changed repr of exceptions (GH-6943) (GH-6950)
(cherry picked from commit 631753fcc5
)
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
parent
d27bc910b5
commit
54fc49737a
1 changed files with 3 additions and 0 deletions
|
@ -1240,6 +1240,9 @@ Changes in the Python API
|
|||
:func:`socket.fromshare` a socket :func:`~socket.socket.share`-ed in older
|
||||
Python versions.
|
||||
|
||||
* ``repr`` for :exc:`BaseException` has changed not to include trailing comma
|
||||
in the output. Mind that most exceptions are affected by this change.
|
||||
|
||||
* ``repr`` for :class:`datetime.timedelta` has changed to include keyword arguments
|
||||
in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue