This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek
Date 2018-08-23.14:25:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535034359.11.0.56676864532.issue34475@psf.upfronthosting.co.za>
In-reply-to
Content
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__'
History
Date User Action Args
2018-08-23 14:25:59chris.jerdoneksetrecipients: + chris.jerdonek
2018-08-23 14:25:59chris.jerdoneksetmessageid: <1535034359.11.0.56676864532.issue34475@psf.upfronthosting.co.za>
2018-08-23 14:25:59chris.jerdoneklinkissue34475 messages
2018-08-23 14:25:58chris.jerdonekcreate