Fix exception patterns and macros

- Fixed _PyExc_ → _TyExc_ globally
- Fixed duplicated macro in SimpleExtendsException
- Fixed Py ## EXCSTORE ## Object → Ty ## EXCSTORE ## Object in macros

These fixes resolve macro expansion issues in exception definitions.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 18:30:41 +00:00
parent 71cf7bf14f
commit 0b5cf5416d
8 changed files with 65 additions and 65 deletions

View File

@@ -2164,7 +2164,7 @@ _TyEval_ExceptionGroupMatch(_PyInterpreterFrame *frame, TyObject* exc_value,
if (excs == NULL) {
return -1;
}
TyObject *wrapped = _PyExc_CreateExceptionGroup("", excs);
TyObject *wrapped = _TyExc_CreateExceptionGroup("", excs);
Ty_DECREF(excs);
if (wrapped == NULL) {
return -1;