[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: r73005 and r73006 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> amaury.forgeotdarc resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is there a difficulty I did not see? Here is a patch. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14021/staticmethod_func.patch ___ Python tracker

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I am all for exposing the __func__ directly but don't immediately see how to do it. -- assignee: rhettinger -> ___ Python tracker ___ __

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread George Sakkis
George Sakkis added the comment: I don't remember the exact use case but it had to do with making a decorator robust enough to work for different kinds of callables (and a few common non-callables such as classmethod/staticmethod). It's not a show stopper by any means but I thought it would be e

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Having to bind and unbind a classmethod to get at the function is definitely a bit weird, and also susceptible to changing implementation, but do you have a practical use case to motivate the effort needed? In Py3, '__func__' replaced 'im_func', and that is the

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-09 Thread George Sakkis
New submission from George Sakkis : It would be nice if classmethod/staticmethod exposed the wrapped function as a read-only attribute/property. Currently the function can be retrieved indirectly but it's obscure (and perhaps not always correct, I'm not sure): In [147]: def f():pass .: