[Python-ideas] Composition over Inheritance

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Oct 29 01:41:54 EDT 2017

My take on all this is that it's much simpler just
to give the engine an attribute that refers back
to the car.

The only downside is that it creates a circular
reference, but in these days of cyclic gc, that's
not much of an issue.


More information about the Python-ideas mailing list