Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
The problem is that PyArg_ParseTupleAndKeywords() supports required keyword-only parameters, but only if all parameters are required. "O|O$O" -- last two are optional. "OO$O" -- all are required. This makes designing a consistent syntax more difficult. '|' currently is not allowed after '$'. If allow it with the meaning that all arguments before it are required, and after it -- optional, this will allow to declare required and optional keyword-only parameters, but optional positional-or-keyword parameters could not be used in the same function. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com