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. What exactly do

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 mind

[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

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. What

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 of:

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 rather than

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 module is built as

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 take that patch,