Keyword only function arguments Python

preview_player
Показать описание
If you see a function that has an asterisk (`*`) on its own with a comma after it, every argument after that point is a keyword-only argument (an argument which can only be specified by its name).

00:00 Accepting arbitrary positional arguments
00:24 Accepting a keyword-only argument
01:33 The `print` function works this way
02:19 Keyword-only arguments without capturing all positional arguments
03:03 Keyword-only arguments in the standard library
03:45 Keyword-only arguments come after `*` in a function definition
Рекомендации по теме
Комментарии
Автор

Thank you for your clear and to-the-point explanations. You're really good at explaining complex stuff, using simple definitions.

scSmashr
welcome to shbcf.ru