Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53222

Re: Interface and duck typing woes

References <mailman.2353.1377730619.19983.python-list@python.org> <49A42AD7-2F16-4EB5-9963-1889576698BD@gmail.com>
Date 2013-08-29 17:16 +1000
Subject Re: Interface and duck typing woes
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.349.1377760625.19984.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Aug 29, 2013 at 4:31 PM, Fabrice POMBET <fp2161@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Interface and duck typing woes Chris Angelico <rosuav@gmail.com> - 2013-08-29 17:16 +1000

csiph-web