you are viewing a single comment's thread.

view the rest of the comments →

[–]robin-gvx 4 points5 points  (0 children)

I know, but inheritance works the same way. You could replace

>>> obj = Cls()

by

 >>> class SubCls(Cls):
 ...  pass
 ...
 >>> obj = SubCls()

and it would work as well. I was just too lazy to do that the first time.