[Tutor] Feed arguments to callback(?) function

Sarfraaz Ahmed sarfraaz at gmail.com
Wed Jun 7 23:54:58 EDT 2023


On Wed, Jun 7, 2023 at 11:39 PM trent shipley <trent.shipley at gmail.com>
wrote:

> Yes that was exactly it.  Another problem is that Python doesn't like you
> trying to pass in arbitrary keyword arguments instead because it could
> result in a name collision, so using *args is preferred.
>
> I found this to be very helpful:
> https://www.informit.com/articles/article.aspx?p=3145749&seqNum=16
>
>
Glad to know that it helped.

Continuing on the keyword arguments comment. From the same author ( Dave ),
you could consider one more point where he mentions under section "Prefer
keyword arguments for optional arguments" in
https://dabeaz-course.github.io/practical-python/Notes/03_Program_organization/02_More_functions.html

-- 
        Jazaak Allahu Khair
               -- Sarfraaz Ahmed


More information about the Tutor mailing list