-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize DECREF (MPI edition). (#3207)
This commit refactors a part of the NRN Python bindings to use `nanobind` objects instead of `Py_DECREF`. The purpose is to simplify the DECREFing logic on error paths; and the risk of leaking when exceptions are thrown. As part of the refactoring, if needed, the scope of certain variables might be reduced or a given a new name. Additionally, NULL pointers are replaced with `nullptr`. This commit doesn't intentionally change reference counts.
- Loading branch information
Showing
1 changed file
with
22 additions
and
12 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