Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53319
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <nedbat@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'pycon': 0.01; '"this': 0.03; 'guido': 0.05; 'keynote': 0.07; 'annotations': 0.09; 'python': 0.11; 'awesome.': 0.16; 'called,': 0.16; 'roy': 0.16; 'url:peps': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'code.': 0.18; 'things.': 0.19; '>>>': 0.22; 'aug': 0.22; 'header :User-Agent:1': 0.23; "aren't": 0.24; 'days,': 0.24; 'url:dev': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'feature': 0.29; 'said,': 0.30; "i'm": 0.30; 'code': 0.31; 'checking.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'url:python': 0.33; 'cases': 0.33; 'checking': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'url:org': 0.36; 'two': 0.37; '2007': 0.38; 'implement': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'everybody': 0.60; 'simple': 0.61; 'name': 0.63; 'real': 0.63; 'such': 0.63; 'relatively': 0.65; 'world': 0.66; 'nobody': 0.68; 'smith': 0.68; 'article': 0.77; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XJEGmlVvfSuFkqo4n5b7Iwon2s79YX1os6lqfxAa51U=; b=R1hOHzvs+87wKTKaYoW6eP3o+hUS1StZagXQ15d5ijShchUMBWd3rEqm7hMVKhbUuM yko3tPICKqsFVUEAQvgU5NGkG8Ezf28jkLQcwka8cQd8260CTu7gfIO/Gf1cCQOHHKsT NVeSB9QtZ255wWpj52Uek14jOomQpuYkK3dmghb2aSiUPC4N3NxDYEPtElO3bZs5D9yG 8w2HNtBnOpPUsDOgEsgN8BZ7fs4QYd3bAbmbcyYVcZWife97F/lyH3AhkgGVUAUeNsi4 a6GvvhbSeKF1gYFD1ejjwZ1534++0CQyZfwcuQ19le9bOTJ2egx4VavqBcJYL5PIuFhC eLBg== |
| X-Received | by 10.224.138.8 with SMTP id y8mr15895887qat.27.1377909903392; Fri, 30 Aug 2013 17:45:03 -0700 (PDT) |
| Sender | Ned Batchelder <nedbat@gmail.com> |
| Date | Fri, 30 Aug 2013 20:45:01 -0400 |
| From | Ned Batchelder <ned@nedbatchelder.com> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Interface and duck typing woes |
| References | <mailman.327.1377724351.19984.python-list@python.org> <pan.2013.08.29.09.41.38.945000@nowhere.com> <mailman.362.1377780041.19984.python-list@python.org> <52200699$0$6599$c3e8da3$5496439d@news.astraweb.com> <roy-72A200.06354730082013@news.panix.com> <5221352b$0$6599$c3e8da3$5496439d@news.astraweb.com> |
| In-Reply-To | <5221352b$0$6599$c3e8da3$5496439d@news.astraweb.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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.399.1377909911.19984.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1377909911 news.xs4all.nl 15994 [2001:888:2000:d::a6]:48222 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53319 |
Show key headers only | View raw
On 8/30/13 8:13 PM, Steven D'Aprano wrote: > On Fri, 30 Aug 2013 06:35:47 -0400, Roy Smith wrote: > >> In article <52200699$0$6599$c3e8da3$5496439d@news.astraweb.com>, >> Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: >> >>> These days, it would be relatively simple to implement pre- and post- >>> condition checking using decorators, and indeed one of the motivating >>> use- cases for function annotations in Python 3 is to allow such >>> things. >>> >>> http://www.python.org/dev/peps/pep-3107/ >>> >>> (Function annotations are perhaps the best Python feature that nobody >>> uses.) >> This is awesome. > > Heh, everybody has one of two reactions: > > "This is awesome!" > > "You'll add type checking to my Python code over my dead body!!!" > > But I'm still to see a practical use for annotations in real world code. > Or indeed to think of a use for them other than type checking. > > At PyCon 2007 (I think), Guido was giving a keynote about the features coming in Py3k, and he couldn't remember the name "function annotations." He said, "what are they called, the things that aren't type declarations." --Ned.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Interface and duck typing woes Joe Junior <joe.fbs.junior@gmail.com> - 2013-08-28 18:09 -0300
Re: Interface and duck typing woes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-28 23:24 +0000
Re: Interface and duck typing woes Nobody <nobody@nowhere.com> - 2013-08-29 10:41 +0100
Re: Interface and duck typing woes Joe Junior <joe.fbs.junior@gmail.com> - 2013-08-29 09:40 -0300
Re: Interface and duck typing woes alex23 <wuwei23@gmail.com> - 2013-08-30 10:14 +1000
Re: Interface and duck typing woes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-30 02:42 +0000
Re: Interface and duck typing woes Roy Smith <roy@panix.com> - 2013-08-30 06:35 -0400
Re: Interface and duck typing woes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-31 00:13 +0000
Re: Interface and duck typing woes Ned Batchelder <ned@nedbatchelder.com> - 2013-08-30 20:45 -0400
Re: Interface and duck typing woes Joshua Landau <joshua@landau.ws> - 2013-09-01 00:18 +0100
Re: Interface and duck typing woes Roy Smith <roy@panix.com> - 2013-08-31 20:52 -0400
Re: Interface and duck typing woes Chris Angelico <rosuav@gmail.com> - 2013-08-29 23:07 +1000
Re: Interface and duck typing woes Joe Junior <joe.fbs.junior@gmail.com> - 2013-08-29 11:11 -0300
Re: Interface and duck typing woes jussi.santti@ard.fi - 2013-08-29 22:37 -0700
csiph-web