bpo-33018: Improve issubclass() error checking and message. (GH-5944) · pythoncapi/cpython@40472dd · GitHub
Skip to content

Commit 40472dd

Browse files
jabilevkivskyi
authored andcommitted
bpo-33018: Improve issubclass() error checking and message. (pythonGH-5944)
This improves error message for situations when a non-class is checked w.r.t. an abstract base class.
1 parent d93b516 commit 40472dd

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lib/_py_abc.py

Lines changed: 2 additions & 0 deletions

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Dillon Brock
202202
Richard Brodie
203203
Michael Broghton
204204
Ammar Brohi
205+
Josh Bronson
205206
Daniel Brotsky
206207
Jean Brouwers
207208
Gary S. Brown
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Improve consistency of errors raised by ``issubclass()`` when called with a
2+
non-class and an abstract base class as the first and second arguments,
3+
respectively. Patch by Josh Bronson.

Modules/_abc.c

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)