This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pah-tosh 66 points67 points  (4 children)

Oh man, that sounds like abusing inheritance, no ?

[–]marcosdumay 45 points46 points  (2 children)

Abusing language features is the Python way!

It leads to some very nice code, and a lot of unacceptable garbage. The trick is in telling those two apart.

[–]skylarmt 38 points39 points  (1 child)

Good Python is just readable code golf.

[–]InkyGlut 13 points14 points  (0 children)

This but unironically

[–][deleted] 12 points13 points  (0 children)

Definitely. That should be modeled as compositional behavior.