-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved internals and type construction
This commit ports a few improvements from the 'limited_api' branch of nanobind. In particular - 'nb_static_property' is constructed in a different way by exposing a writeable '__doc__' member field. This is to work around an issue in CPython (related discussion can be found here: python/cpython#98963) - Instead of copy-pasting GC ``tp_clear`` and ``tp_traverse`` slots from parent to child classes, we rely on ``PyType_Ready`` doing this automatically.
- Loading branch information
Showing
3 changed files
with
47 additions
and
43 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
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