I love the decorator in Python!!!

alex23 wuwei23 at gmail.com
Mon Dec 12 19:46:52 EST 2011


On Dec 13, 2:27 am, Robert Kern <robert.k... at gmail.com> wrote:
> On 12/12/11 3:36 AM, alex23 wrote:
>
> > On Dec 9, 8:08 pm, Robert Kern<robert.k... at gmail.com>  wrote:
> >> On 12/9/11 5:02 AM, alex23 wrote:
> >>> 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
>
> > Ah, cheers :) Is that a recent addition? The lack of note makes it
> > seem like it was there from the beginning?
>
> The module was added in Python 2.5 as noted at the top of the page.

I had thought you meant it now included function signature handling,
as that was the context at the time. No biggie.



More information about the Python-list mailing list