[issue34475] functools.partial objects have no __qualname__ attribute
Serhiy Storchaka
report at bugs.python.org
Thu Oct 18 06:10:27 EDT 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
partial objects lack many other function attributes: __name__, __module__ (and __qualname__ doesn't make sense without __module__), __annotations__, __get__(), etc. It would be nice to make these types more similar, but attributes shouldn't lie. And I am not sure what partial.__qualname__ can be. It shouldn't be the __qualname__ of the wrapped function, since the partial object differs from it, and is not accessible by same name.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34475>
_______________________________________
More information about the Python-bugs-list
mailing list