Re: [Python-Dev] Adding functools.decorator

2006-05-02 Thread Guido van Rossum
On 5/2/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Maybe we should just expose a basic interface to replace the four lines of > boilerplate (the docstring makes this look more complicated than it really > is!): +1 -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___

Re: [Python-Dev] Adding functools.decorator

2006-05-02 Thread Nick Coghlan
Guido van Rossum wrote: > On 4/30/06, Georg Brandl <[EMAIL PROTECTED]> wrote: >> Guido van Rossum wrote: >>> I expect that at some point people will want to tweak what gets copied >>> by _update_wrapper() -- e.g. some attributes may need to be >>> deep-copied, or personalized, or skipped, etc. >> W

Re: [Python-Dev] Adding functools.decorator

2006-05-01 Thread Guido van Rossum
On 4/30/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > I expect that at some point people will want to tweak what gets copied > > by _update_wrapper() -- e.g. some attributes may need to be > > deep-copied, or personalized, or skipped, etc. > > What exactly do you have in

Re: [Python-Dev] Adding functools.decorator

2006-04-30 Thread Brett Cannon
On 4/30/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 4/30/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Nick Coghlan wrote: > > > Collin Winters has done the work necessary to rename PEP 309's functional > > > module to functools and posted the details to SF [1]. > > > > > > I'd like to t

Re: [Python-Dev] Adding functools.decorator

2006-04-30 Thread Georg Brandl
Guido van Rossum wrote: > On 4/30/06, Georg Brandl <[EMAIL PROTECTED]> wrote: >> Nick Coghlan wrote: >> > Collin Winters has done the work necessary to rename PEP 309's functional >> > module to functools and posted the details to SF [1]. >> > >> > I'd like to take that patch, tweak it so the C mod

Re: [Python-Dev] Adding functools.decorator

2006-04-30 Thread Guido van Rossum
On 4/30/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > Nick Coghlan wrote: > > Collin Winters has done the work necessary to rename PEP 309's functional > > module to functools and posted the details to SF [1]. > > > > I'd like to take that patch, tweak it so the C module is built as _functools > >

Re: [Python-Dev] Adding functools.decorator

2006-04-30 Thread Georg Brandl
Nick Coghlan wrote: > Collin Winters has done the work necessary to rename PEP 309's functional > module to functools and posted the details to SF [1]. > > I'd like to take that patch, tweak it so the C module is built as _functools > rather than functools, and then add a functools.py consisting

Re: [Python-Dev] Adding functools.decorator

2006-04-30 Thread Simon Belak
Nick Coghlan wrote: > Some details that are up for discussion: > > - which of a function's special attributes should be copied/updated? > - should the __decorates__ and __decorator__ attributes be added? > > If people are happy with this idea, I can make sure it happens before > alpha > 3. Wh

[Python-Dev] Adding functools.decorator

2006-04-30 Thread Nick Coghlan
Collin Winters has done the work necessary to rename PEP 309's functional module to functools and posted the details to SF [1]. I'd like to take that patch, tweak it so the C module is built as _functools rather than functools, and then add a functools.py consisting of: from _functools import *