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

super doesn't work on PersistentMapping #3

Closed
Estartu opened this issue Jan 9, 2014 · 2 comments
Closed

super doesn't work on PersistentMapping #3

Estartu opened this issue Jan 9, 2014 · 2 comments
Labels

Comments

@Estartu
Copy link

Estartu commented Jan 9, 2014

I have a Class inheriting from three base classes. First
PersistentMapping and two of my own classes.

In init of this class I call super(MyClass, self).init() but the
init methods of my two classes get never called.

If i move PersistentMapping to inherit last. The init methods of
both classes are called.

@tseaver
Copy link
Member

tseaver commented Jan 9, 2014

@tseaver
Copy link
Member

tseaver commented Nov 28, 2014

This behavior is due to implementing PersistentMapping by deriving from the stdlib's (Iterable)UserDict, whose __init__() does not call super() in either Python 2 or Python 3. We can't fix that problem.

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

2 participants