bpo-40170: Always define PyExceptionClass_Name() as a function (GH-24… · python/cpython@cd80f43 · GitHub
Skip to content

Commit cd80f43

Browse files
author
Erlend Egeberg Aasland
authored
bpo-40170: Always define PyExceptionClass_Name() as a function (GH-24553)
Remove macro variant of PyExceptionClass_Name().
1 parent 801bb0b commit cd80f43

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

Include/cpython/pyerrors.h

Lines changed: 0 additions & 4 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:c:func:`PyExceptionClass_Name` is now always declared as a function, in
2+
order to hide implementation details. The macro accessed
3+
:c:member:`PyTypeObject.tp_name` directly. Patch by Erlend E. Aasland.

Objects/exceptions.c

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)