-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Always call super in init #113
Comments
@rmorshea These are bugs that need to be fixed please by the way. This is a basic requirement of multiple inheritance in Python. |
|
|
@NeilGirdhar - see #174 |
As for the value setting with kwargs, I'd create a separate issue for it and ping minrk, ellisonbg, and SylvainCorlay. I'm not sure what their reasons have been for keeping it so I can't speak for them on that. |
@NeilGirdhar, unfortunately you can't do that since |
@rmorshea You just forward the args and kwargs. If none of the superclasses consume them, then you're right that |
Args are passed through to super in #175 |
HasTraits.__init__
does not call super. It must call super if you want to useHasTraits
in multiple inheritance.HasTraits
also silently swallows positional arguments. Why does it do that?Finally, it would be nice if
HasTraits.__init__
did not automatically set its keyword arguments onto the object. The problem with this is it means thatHasTraits
must be the final class in the mro, which is hard to guarantee. Is this behaviour really necessary?The text was updated successfully, but these errors were encountered: