Re: [Python-Dev] dealing with decorators hiding metadata of decorated functions

2006-03-19 Thread Aahz
On Sun, Mar 19, 2006, Brett Cannon wrote: > > I guess we need to decide if we want to promote the copying of > metadata from the decorated function into the decorator or not. Short answer: absolutely yes I had to deal with a related issue recently, where embedded doctests no longer worked on the

Re: [Python-Dev] dealing with decorators hiding metadata of decorated functions

2006-03-19 Thread Brett Cannon
On 3/17/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Josiah Carlson wrote: > > "Brett Cannon" <[EMAIL PROTECTED]> wrote: > >> With the discussion of a possible @decorator to help set the metadata > >> of the decorator to that of what the wrapped function has, I had an > >> idea that I wanted to to

Re: [Python-Dev] dealing with decorators hiding metadata of decorated functions

2006-03-17 Thread Nick Coghlan
Josiah Carlson wrote: > "Brett Cannon" <[EMAIL PROTECTED]> wrote: >> With the discussion of a possible @decorator to help set the metadata >> of the decorator to that of what the wrapped function has, I had an >> idea that I wanted to toss out there (this dicussion stems from a blog >> post I made:

Re: [Python-Dev] dealing with decorators hiding metadata of decorated functions

2006-03-17 Thread Josiah Carlson
"Brett Cannon" <[EMAIL PROTECTED]> wrote: > > With the discussion of a possible @decorator to help set the metadata > of the decorator to that of what the wrapped function has, I had an > idea that I wanted to toss out there (this dicussion stems from a blog > post I made: > http://sayspy.blogsp

[Python-Dev] dealing with decorators hiding metadata of decorated functions

2006-03-17 Thread Brett Cannon
With the discussion of a possible @decorator to help set the metadata of the decorator to that of what the wrapped function has, I had an idea that I wanted to toss out there (this dicussion stems from a blog post I made: http://sayspy.blogspot.com/2006/03/how-to-handle-object-identity-issues.html