diff options
author | Jay Ting <65202977+jayasting98@users.noreply.github.com> | 2024-02-24 23:34:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 23:34:45 (GMT) |
commit | 948acd6ed856251dc5889cc34cf7a58210c4f9a9 (patch) | |
tree | ff3492e2fe56bdf4d04113535eeda3d1e60f7362 /Misc/NEWS.d | |
parent | e3dedeae7abbeda0cb3f1d872ebbb914635d64f2 (diff) | |
download | cpython-948acd6ed856251dc5889cc34cf7a58210c4f9a9.zip cpython-948acd6ed856251dc5889cc34cf7a58210c4f9a9.tar.gz cpython-948acd6ed856251dc5889cc34cf7a58210c4f9a9.tar.bz2 |
gh-115323: Add meaningful error message for using bytearray.extend with str (#115332)
Perform str check after TypeError is raised
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2024-02-12-23-29-17.gh-issue-115323.3t6687.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-02-12-23-29-17.gh-issue-115323.3t6687.rst b/Misc/NEWS.d/next/Core and Builtins/2024-02-12-23-29-17.gh-issue-115323.3t6687.rst new file mode 100644 index 0000000..1718556 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-02-12-23-29-17.gh-issue-115323.3t6687.rst @@ -0,0 +1,2 @@ +Make error message more meaningful for when :meth:`bytearray.extend` is +called with a :class:`str` object. |