Way to call super(MyClass, self).__init__() without MyClass?
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-03-28T23:35:57Z
Indexed on
2010/03/28
23:43 UTC
Read the original article
Hit count: 111
I find this syntax astoundingly annoying. Every time I rename my class, I have to change this call for no apparent reason. Isn't there some __class__
magic variable or something I can use at least? Interested in answers for Python 2.5, but it doesn't hurt to know if later versions fixed this.
© Stack Overflow or respective owner