[issue4113] functools.partial(), no __name__; wrong __doc__

Georg Brandl report at bugs.python.org
Sun Oct 19 22:38:26 CEST 2008


Georg Brandl <georg at python.org> added the comment:

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.

----------
nosy: +georg.brandl
priority:  -> low
type: behavior -> feature request
versions: +Python 3.1 -Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4113>
_______________________________________


More information about the Python-bugs-list mailing list