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 xtreak
Recipients chris.jerdonek, hongweipeng, xtreak
Date 2018-09-10.06:17:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536560221.91.0.56676864532.issue34475@psf.upfronthosting.co.za>
In-reply-to
Content
It seems __repr__ call to partial object has qualname but I think it always returns "partial". Ref : https://github.com/python/cpython/blob/0afada163c7ef25c3a9d46ed445481fb69f2ecaf/Lib/functools.py#L276

>>> 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__'
>>> p
functools.partial(<class 'int'>)


Thanks
History
Date User Action Args
2018-09-10 06:17:01xtreaksetrecipients: + xtreak, chris.jerdonek, hongweipeng
2018-09-10 06:17:01xtreaksetmessageid: <1536560221.91.0.56676864532.issue34475@psf.upfronthosting.co.za>
2018-09-10 06:17:01xtreaklinkissue34475 messages
2018-09-10 06:17:01xtreakcreate