Message396095
The docstring for .after says the 2nd argument must be a 'function'. Whether this issue is a bugfix or enhancement request depends whether one interprets 'function' as 'callable' or something narrower that only includes objects that necessarily have __name__ attributes. The latter would exclude partials and instances of user classes with __call__ methods.
While a one-time-use partial as in the example is superfluous, I think other uses and parameterized callback classes should be supported. So I agree with changing the tkinter code rather than qualifying 'function' with 'has a .__name__ attribute'. I think 'type(func).__name__' should be safe. |
|
Date |
User |
Action |
Args |
2021-06-18 21:23:10 | terry.reedy | set | recipients:
+ terry.reedy, serhiy.storchaka, epaine, phil.tgd |
2021-06-18 21:23:10 | terry.reedy | set | messageid: <1624051390.77.0.821872586479.issue44404@roundup.psfhosted.org> |
2021-06-18 21:23:10 | terry.reedy | link | issue44404 messages |
2021-06-18 21:23:10 | terry.reedy | create | |
|