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
Weird behavior when calling super().__init__ #53
Comments
wow, very strange indeed ! This should definitely not happen. It is probably related to the fact that the |
For some reason that seems to be a python bug, I'll have to find a workaround, that should not be too difficult. In the meantime, you can use |
I found a workaround but for python 3.6+ (where |
Thanks, using |
I finally found a "clever" way to solve this :) It will ship in |
Let's say I want to call superclass init in my child class:
This fails with the following Error:
If I try the following:
This leads to the following:
This is very dangerous, and was leading to a weird error in my code. Took me a while to figure out this was the cause.
I think the superclass constructor is being overriden by the child class.
setattr(objtype, '__init__', new_init)
ininit_makers.py
Is calling superclass constructor not supported?
I am using version 1.0.2
The text was updated successfully, but these errors were encountered: