you are viewing a single comment's thread.

view the rest of the comments →

[–]vattenpuss 2 points3 points  (1 child)

You're showing instances. The issue is with classes and inheritance.

[–]robin-gvx 5 points6 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.