En Sun, 03 May 2009 20:58:19 -0300, Дамјан Георгиевски
escribió:
I have a simple descriptor to create a cached property as shown below.
...
The problem is that when I use the help() function on them, I don't
get the doc string from the function that is being wrapped.
...
What do I need to
> I have a simple descriptor to create a cached property as shown below.
...
> The problem is that when I use the help() function on them, I don't
> get the doc string from the function that is being wrapped.
...
> What do I need to do to get the doc string of the wrapped function to
> apper when
On Sat, 02 May 2009 23:36:26 -0500, Kevin D. Smith wrote:
> I have a simple descriptor to create a cached property as shown below.
...
> What do I need to do to get the doc string of the wrapped function to
> apper when using help()?
Call it on the class, not the instance:
>>> class Test(object