This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients barry, brett.cannon, bskinn, docs@python, grantjenks, gregory.p.smith, mdk, ncoghlan, p-ganssle, pablogsal, rhettinger, serhiy.storchaka, tim.peters, vstinner, willingc
Date 2019-06-05.06:44:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559717067.0.0.0978745635766.issue37134@roundup.psfhosted.org>
In-reply-to
Content
You need to use the PEP 570 syntax if your function/method have a var-keyword parameter, takes arbitrary keyword arguments, and has other parameters beside the var-keyword parameter ("self" counts). And of course the minimal supported Python version should be 3.8.

In PR 13700 the PEP 570 syntax was added in the documentation of functions that use it in the code (like partial() and getcallargs()) and also in the examples of user code where it is needed (like LRU, Callback and Namespace).

PR 13743 adds it the documentation of functions which do not accept arbitrary keywords, but take some of arguments as positional only and others as positional or keyword. It may be surprising, so I think it is better to document this explicitly.
History
Date User Action Args
2019-06-05 06:44:27serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, barry, brett.cannon, rhettinger, gregory.p.smith, ncoghlan, vstinner, docs@python, willingc, mdk, bskinn, p-ganssle, pablogsal, grantjenks
2019-06-05 06:44:27serhiy.storchakasetmessageid: <1559717067.0.0.0978745635766.issue37134@roundup.psfhosted.org>
2019-06-05 06:44:26serhiy.storchakalinkissue37134 messages
2019-06-05 06:44:26serhiy.storchakacreate