Interface and duck typing woes

Chris Angelico rosuav at gmail.com
Thu Aug 29 03:16:57 EDT 2013


On Thu, Aug 29, 2013 at 4:31 PM, Fabrice POMBET <fp2161 at gmail.com> wrote:
> I am no depository of the pythonic way to think(tm) but I would create flock and inherit Duck from flock, or possibly set Flock as a method of ducks.
>

Why should a Duck _be_ a Flock? They are quite different. No, a flock
_has_ a duck (or rather, a number of ducks).

ChrisA



More information about the Python-list mailing list