-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support metaclasses in HPy. #335
Merged
Merged
Commits on Oct 14, 2022
-
Add support for metaclass in HPyType_FromSpec
This adds a new member of HPyType_SpecParam_Kind and its handling in HPyType_FromSpec. CPython does not support metaclass in PyType_FromSpecWithBases and this PR relies on patched CPython version that provides PyType_FromSpecWithBasesAndMeta, which is very simple extension of PyType_FromSpecWithBases (diff ~10 lines), but adds a new API. Doing all the work on HPy side would require pulling PyType_FromSpecWithBases code to HPy including all the static helper methods. Not only this would be a large amount of code, but some of the helper methods use internal APIs.
Configuration menu - View commit details
-
Copy full SHA for 7c94e1a - Browse repository at this point
Copy the full SHA 7c94e1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for da5dd3a - Browse repository at this point
Copy the full SHA da5dd3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ebd0c1 - Browse repository at this point
Copy the full SHA 9ebd0c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 619dd46 - Browse repository at this point
Copy the full SHA 619dd46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b7d16e - Browse repository at this point
Copy the full SHA 3b7d16eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02a7eae - Browse repository at this point
Copy the full SHA 02a7eaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc3624a - Browse repository at this point
Copy the full SHA cc3624aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b1a00 - Browse repository at this point
Copy the full SHA d1b1a00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10a9b1b - Browse repository at this point
Copy the full SHA 10a9b1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9bfa43 - Browse repository at this point
Copy the full SHA c9bfa43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eba518 - Browse repository at this point
Copy the full SHA 6eba518View commit details -
Configuration menu - View commit details
-
Copy full SHA for 404b9a8 - Browse repository at this point
Copy the full SHA 404b9a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e831b5 - Browse repository at this point
Copy the full SHA 0e831b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 920c034 - Browse repository at this point
Copy the full SHA 920c034View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5a08c6 - Browse repository at this point
Copy the full SHA c5a08c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce7a886 - Browse repository at this point
Copy the full SHA ce7a886View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07f25c0 - Browse repository at this point
Copy the full SHA 07f25c0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.