summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-10-22 23:13:46 (GMT)
committerGitHub <noreply@github.com>2021-10-22 23:13:46 (GMT)
commitf30ad65dbf3c6b1b5eec14dc954d65ef32327857 (patch)
tree410d8eb9335a1e405cbc7092e8f5a36e592ad712 /Include/cpython
parent4bc5473a42c5eae0928430930b897209492e849d (diff)
downloadcpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.zip
cpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.tar.gz
cpython-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.tar.bz2
bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pyerrors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index a3ec5af..28ab565 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -17,6 +17,12 @@ typedef struct {
typedef struct {
PyException_HEAD
PyObject *msg;
+ PyObject *excs;
+} PyBaseExceptionGroupObject;
+
+typedef struct {
+ PyException_HEAD
+ PyObject *msg;
PyObject *filename;
PyObject *lineno;
PyObject *offset;