Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates the ``nb_type`` metaclass to create type objects that directly include the supplement (if present). This involves a dictionary of metaclasses (``nb_type_X``, where ``X`` is the size in bytes) that are created on demand. The commit also simplifies ``nb_type_new()`` by moving much of its contents into a new function ``nb_type_from_metaclass()``, which simply calls ``PyType_FromMetaclass()`` when it is available. Otherwise, it emulates the behavior of ``PyType_FromMetaclass()``. This part has also been simplified and no longer involves the creation of an intermediate type.
- Loading branch information
Showing
6 changed files
with
342 additions
and
268 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
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
Oops, something went wrong.