Skip to content
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

need to check method_class and attribute_class for metaclass compat #136

Open
doy opened this issue Nov 3, 2013 · 0 comments
Open

need to check method_class and attribute_class for metaclass compat #136

doy opened this issue Nov 3, 2013 · 0 comments
Labels

Comments

@doy
Copy link
Collaborator

doy commented Nov 3, 2013

If a class sets method_class to a certain value, it should then be able to assume that all methods defined in a class whose metaclass inherits from it also inherit from the thing method_class was set to. Currently though, a subclass can override method_class to some completely unrelated class, breaking this (and the same goes for attributes). We just need to check method_class and attribute_class during metaclass creation to make sure they are compatible - I don't think there's really any fixing we can do here (is there?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant