Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc500a39

Browse files
committed
fixup! reworkedPythonException:
1 parent4f3f648 commitc500a39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/runtime/pythonexception.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ public PythonException Clone()
354354
internalboolIs(IntPtrtype)
355355
{
356356
returnRuntime.PyErr_GivenExceptionMatches(
357-
(Value??Type).Reference,
358-
newBorrowedReference(type))!=0;
357+
given:(Value??Type).Reference,
358+
typeOrTypes:newBorrowedReference(type))!=0;
359359
}
360360

361361
privatestaticvoidCheckRuntimeIsRunning()

‎src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ internal static void PyErr_SetString(IntPtr ob, string message)
21092109
internalstaticintPyErr_ExceptionMatches(IntPtrexception)=>Delegates.PyErr_ExceptionMatches(exception);
21102110

21112111

2112-
internalstaticintPyErr_GivenExceptionMatches(BorrowedReferenceob,BorrowedReferenceval)=>Delegates.PyErr_GivenExceptionMatches(ob,val);
2112+
internalstaticintPyErr_GivenExceptionMatches(BorrowedReferencegiven,BorrowedReferencetypeOrTypes)=>Delegates.PyErr_GivenExceptionMatches(given,typeOrTypes);
21132113

21142114

21152115
internalstaticvoidPyErr_NormalizeException(refNewReferencetype,refNewReferenceval,refNewReferencetb)=>Delegates.PyErr_NormalizeException(reftype,refval,reftb);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp