-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyROOT] Use
GetOptional
family of C Python API where necessary
With Python 3.13, some lookup methods like `PyMapping_GetItemString` and `PyObject_GetAttrString` became more strict. They are now always throwing an exception in case the attribute is not found. To make these optional lookups work again, the `GetOptional` family of functions needs to be used. See: * https://docs.python.org/3/c-api/object.html#c.PyObject_GetOptionalAttrString * https://docs.python.org/3/c-api/mapping.html#c.PyMapping_GetOptionalItemString
- Loading branch information
1 parent
9b95c37
commit 0a823d9
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters