Newsgroups: comp.lang.python
From: David Stanek <dsta...@dstanek.com>
Date: Fri, 17 Jul 2009 08:21:39 -0400
Local: Fri, Jul 17 2009 8:21 am
Subject: Re: Override a method but inherit the docstring
On Fri, Jul 17, 2009 at 3:52 AM, Steven
D'Aprano<st...@remove-this-cybersource.com.au> wrote: It isn't too bad. I got the idea to use the method's enclosing > On Fri, 17 Jul 2009 12:58:48 +1000, Ben Finney wrote: >>> Using a decorator in this manner requires repeating the super class >> Yes, I tried a few different ways, but within the decorator it seems the > When the decorator is called, the function object is just a function >>>> def dec(func): > I suppose you could try to determine what namespace you're currently when scope[1] in my decorator[2] from DecoratorTools. I am working to remove it because it make me sad, but it does work. [1] http://code.google.com/p/snake-guice/source/browse/snakeguice/decorat... -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||