mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user