We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c461aa9 commit 65d6cedCopy full SHA for 65d6ced
Doc/c-api/exceptions.rst
@@ -793,6 +793,17 @@ Exception Classes
793
Return :c:member:`~PyTypeObject.tp_name` of the exception class *ob*.
794
795
796
+.. c:macro:: PyException_HEAD
797
+
798
+ This is a :term:`soft deprecated` macro including the base fields for an
799
+ exception object.
800
801
+ This was included in Python's C API by mistake and is not designed for use
802
+ in extensions. For creating custom exception objects, use
803
+ :c:func:`PyErr_NewException` or otherwise create a class inheriting from
804
+ :c:data:`PyExc_BaseException`.
805
806
807
Exception Objects
808
=================
809
0 commit comments