Message323947
functools.partial objects have no __qualname__ attribute. This means, for example, that code expecting a callable that logs the __qualname__ attribute can break when passed a functools.partial object.
Example:
>>> import functools
>>> int.__qualname__
'int'
>>> p = functools.partial(int)
>>> p.__qualname__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'functools.partial' object has no attribute '__qualname__' |
|
Date |
User |
Action |
Args |
2018-08-23 14:25:59 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
2018-08-23 14:25:59 | chris.jerdonek | set | messageid: <1535034359.11.0.56676864532.issue34475@psf.upfronthosting.co.za> |
2018-08-23 14:25:59 | chris.jerdonek | link | issue34475 messages |
2018-08-23 14:25:58 | chris.jerdonek | create | |
|