[New-bugs-announce] [issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

Philip Sundt report at bugs.python.org
Sat Jun 12 16:53:12 EDT 2021


New submission from Philip Sundt <phil.tgd at gmail.com>:

```
>>> import tkinter
>>> from functools import partial
>>> r=tkinter.Tk()
>>> r.after(500, partial(print, "lol"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/tkinter/__init__.py", line 755, in after
    callit.__name__ = func.__name__
AttributeError: 'functools.partial' object has no attribute '__name__'
```

----------
components: Tkinter
messages: 395712
nosy: phil.tgd
priority: normal
severity: normal
status: open
title: tkinter's after() AttributeError with functools.partial (no attribute __name__)
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44404>
_______________________________________


More information about the New-bugs-announce mailing list