On Thu, Aug 23, 2018 at 6:24 AM, David Mertz <me...@gnosis.cx> wrote: > Oops. I blame the partial editing of copy/padte on doing it on my phone. I > meant this, of course: > > widget.register(callback=spam.eggs)
This isn't quite the same, incidentally. It's (mostly) equivalent to: widget.register(callback=lambda *a,**kw: spam.eggs(*a,**kw)) I don't know of any situations where you specifically want to mandate that there be no arguments, but it's enough difference that I'd go check the docs before doing the refactor. (This is FREQUENTLY significant in JavaScript, where argument count mismatches are silent. So I'm used to seeing those shim functions.) ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/