-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Labels
coreIssues relating to core functionality (e.g. syntax)Issues relating to core functionality (e.g. syntax)
Description
For example:
class Test(SystemExit): pass
raise Testdoes not terminate the process. The C# code expects a SystemExitException but the exception ends up being of type Exception.
Also, an IndexError (which becomes an IndexOutOfRangeException) would not be caught by LookupException handler in C# even though LookupError is a base of IndexError. For example:
try {
PythonCalls.Call(context, somethingthatthrowsindexerror);
} catch (LookupException e) {
// do stuff
}would not catch the exception.
This came up in #1011.
Metadata
Metadata
Assignees
Labels
coreIssues relating to core functionality (e.g. syntax)Issues relating to core functionality (e.g. syntax)