Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2018-07-28.20:29:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2018-07-28 20:29:44serhiy.storchakasetrecipients: + serhiy.storchaka
2018-07-28 20:29:44serhiy.storchakasetmessageid: <>
2018-07-28 20:29:44serhiy.storchakalinkissue34235 messages
2018-07-28 20:29:44serhiy.storchakacreate