Message74982
| Author |
georg.brandl |
| Recipients |
georg.brandl, stribb, terry.reedy, thomaslee |
| Date |
2008年10月19日.20:38:24 |
| SpamBayes Score |
2.2444942e-08 |
| Marked as misclassified |
No |
| Message-id |
<1224448706.3.0.370049713213.issue4113@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I do not think the partial object should have the original function's
__name__ or __doc__. It is after all not that function, but a callable
that calls it. (This is different from e.g. a decorated function -- the
decorator is taken as "modifying the function", even if it returns a
wholly different one. This is why functools.wraps() exists.)
In any case, this is not a bug but a feature request. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月19日 20:38:26 | georg.brandl | set | recipients:
+ georg.brandl, terry.reedy, thomaslee, stribb |
| 2008年10月19日 20:38:26 | georg.brandl | set | messageid: <1224448706.3.0.370049713213.issue4113@psf.upfronthosting.co.za> |
| 2008年10月19日 20:38:25 | georg.brandl | link | issue4113 messages |
| 2008年10月19日 20:38:24 | georg.brandl | create |
|