Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'idle,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'underlying': 0.09; 'am,': 0.12; 'argument': 0.15; '2:38': 0.16; 'alex23': 0.16; 'docstrings': 0.16; 'enigma': 0.16; "function's": 0.16; 'kern': 0.16; 'wrote:': 0.18; 'dec': 0.22; 'header:In-Reply- To:1': 0.22; 'somehow': 0.23; 'though.': 0.23; 'module': 0.26; 'testing': 0.26; 'function': 0.27; 'do.': 0.28; 'interpret': 0.29; 'chris': 0.30; 'url:library': 0.31; 'actual': 0.32; 'header:User- Agent:1': 0.33; 'rather': 0.33; 'header:X-Complaints-To:1': 0.33; 'instead': 0.33; 'to:addr:python-list': 0.34; 'see,': 0.34; 'list.': 0.35; 'url:python': 0.36; 'but': 0.37; 'received:org': 0.38; 'some': 0.38; 'useful': 0.38; 'url:docs': 0.39; "i'd": 0.39; 'url:org': 0.39; 'help': 0.39; 'to:addr:python.org': 0.40; 'world': 0.62; 'received:86': 0.63; 'our': 0.64; 'believe': 0.65; 'piece': 0.66; 'care': 0.71; 'subject:!!!': 0.76; 'eco': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: I love the decorator in Python!!! Date: Fri, 09 Dec 2011 10:08:08 +0000 References: <29996186.628.1323328726122.JavaMail.geo-discussion-forums@prfb7> <0aae460e-caf1-44ce-b228-e6943fc75b7f@24g2000prd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host86-183-157-196.range86-183.btcentralplus.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <0aae460e-caf1-44ce-b228-e6943fc75b7f@24g2000prd.googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323425305 news.xs4all.nl 6851 [2001:888:2000:d::a6]:58285 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16905 On 12/9/11 5:02 AM, alex23 wrote: > On Dec 9, 2:38 am, Chris Angelico wrote: >> One piece of sophistication that I would rather like to see, but don't >> know how to do. Instead of *args,**kwargs, is it possible to somehow >> copy in the function's actual signature? I was testing this out in >> IDLE, and the fly help for the function no longer gave useful info >> about its argument list. > > The 3rd party 'decorator' module takes care of issues like docstrings > & function signatures. I'd really like to see some of that > functionality in the stdlib though. Much of it is: http://docs.python.org/library/functools#functools.update_wrapper -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco