-
Notifications
You must be signed in to change notification settings - Fork 784
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
pyclass: move flags to PyClassImpl #1456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks like reasonable changes, but why PyClassImpl
instead of PyClass
?
I understand that PyClassImpl
is for collecting methods by pseudo-specialization trick, so I don't see the necessity to place these flags under PyClassImpl
.
Overall I see To reduce the complex trait hierarchy I was thinking to merge |
How about moving some flags under |
Only the I'll have a go with a follow-up commit to try refactoring |
b5c8524
to
d9fe404
Compare
I've pushed a commit which removes the I looked at doing further work to So I will try and push something experimental in a separate PR later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
This is a (mostly internal) refactoring to move some pieces of
PyTypeInfo
which aren't needed for anything other than#[pyclass]
onto thePyClassImpl
trait.At the same time I cleaned up the old
FLAGS
constant which still had unneeded entries for e.g. weakref.