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 epaine
Recipients epaine, phil.tgd, serhiy.storchaka
Date 2021-06-13.08:51:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623574266.06.0.554407612502.issue44404@roundup.psfhosted.org>
In-reply-to
Content
Reproducible in Python 3.9. The issue occurs because functools.partial is a class, not function. I believe the fix is simply something like:

try:
    callit.__name__ = func.__name__
except AttributeError:
    callit.__name__ = type(func).__name__

This will use the name 'partial'. The lack of '__name__' is noted in the functools docs so I agree with Philip that this is an issue with tkinter. Philip, do you want to open a pull request for this?

It should be noted that functools.partial is not required in this situation as 'after' takes arguments for the function call:
r.after(500, print, "lol")
History
Date User Action Args
2021-06-13 08:51:06epainesetrecipients: + epaine, serhiy.storchaka, phil.tgd
2021-06-13 08:51:06epainesetmessageid: <1623574266.06.0.554407612502.issue44404@roundup.psfhosted.org>
2021-06-13 08:51:06epainelinkissue44404 messages
2021-06-13 08:51:05epainecreate