forked from python/cpython
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-115323: Add meaningful error message for using bytearray.ext…
…end with str (pythonGH-115332) Perform str check after TypeError is raised --------- (cherry picked from commit 948acd6) Co-authored-by: Jay Ting <65202977+jayasting98@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
- Loading branch information
1 parent
9daf55e
commit a48ec4b
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Core and Builtins/2024-02-12-23-29-17.gh-issue-115323.3t6687.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Make error message more meaningful for when :meth:`bytearray.extend` is | ||
called with a :class:`str` object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters