Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; "they've": 0.09; 'python': 0.11; '"new': 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'python".': 0.16; 'received:174.136': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'decorators': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'subject: (': 0.35; 'late': 0.35; 'there': 0.35; 'maintained': 0.36; 'charset:us-ascii': 0.36; 'received:10': 0.37; 'richard': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'introduced': 0.61; 'new': 0.61; 'forward': 0.65; '2004.': 0.84; 'touched': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1416018477625:3760401809 X-MC-Ingress-Time: 1416018477625 Date: Fri, 14 Nov 2014 20:30:38 -0600 From: Tim Chase To: python-list@python.org Subject: Re: Decorators (was: Re: I love assert) In-Reply-To: <26dba8fd-e403-4129-ad57-11376eb807bd@googlegroups.com> References: <96c138e4-ab95-4e5f-a0c8-e696b5a926bb@googlegroups.com> <8761ehmnnt.fsf_-_@elektro.pacujo.net> <26dba8fd-e403-4129-ad57-11376eb807bd@googlegroups.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416026898 news.xs4all.nl 2861 [2001:888:2000:d::a6]:42522 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3433 X-Received-Body-CRC: 895756863 Xref: csiph.com comp.lang.python:80809 On 2014-11-14 18:19, Richard Riehle wrote: > Decorators are new in Python, so there are not a lot of people > using them. Um...they were introduced in 2.4 which was released in late 2004. So they've only been around for about (almost exactly) a decade. Not sure that qualifies as "new in Python". And decorators are used pretty regularly in just about every code-base that I've touched (I've been programming in Python since early 2004, so I've maintained pre-2.4 code without decorators and then brought it forward to 2.4 where decorators were usable). -tkc