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


Groups > comp.lang.python > #53222

Re: Interface and duck typing woes

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.076
X-Spam-Evidence '*H*': 0.86; '*S*': 0.01; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pythonic': 0.16; 'rather,': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'aug': 0.22; '(or': 0.24; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'quite': 0.32; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'different.': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=glzCT1MCYM0eagBVP/5C/vStlAj80PomYDn8aLqVIJk=; b=HcuU5/5nHdvdRS6sIM9Rn7TeCkLdHCs4KkyE0fPO/PcKYogU6asqRRImUXmam79E72 UAO15/tmsxFbpyN/RLbsrKN9M4zle7eu6hbPAI6zHvKhpx5f5A8KXgp6+htmI2KzJSdO nMB76DmGu86NJ9CW6P/F2LJtGH6mQRQVtbEgm3KjgpdaiCXUuaCUGE/yZuswzlgaEYFH t3yj0kzuv6KGLAne+Js6HkbuetZthC1UtZhuhxQyos0dzle+lPt3Bo2YUky2G7YYleMw Y2xFrBvptBfRZAQ2x/0k0XXadFbc7TAd9otYox9Zyh/MoBo6D+mQKtKCyu5S2Q3Cg4yN BFxg==
MIME-Version 1.0
X-Received by 10.66.163.199 with SMTP id yk7mr2667638pab.136.1377760617576; Thu, 29 Aug 2013 00:16:57 -0700 (PDT)
In-Reply-To <49A42AD7-2F16-4EB5-9963-1889576698BD@gmail.com>
References <mailman.2353.1377730619.19983.python-list@python.org> <49A42AD7-2F16-4EB5-9963-1889576698BD@gmail.com>
Date Thu, 29 Aug 2013 17:16:57 +1000
Subject Re: Interface and duck typing woes
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.349.1377760625.19984.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377760625 news.xs4all.nl 15892 [2001:888:2000:d::a6]:33916
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53222

Show key headers only | 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