Message322589
| Author | serhiy.storchaka |
|---|---|
| Recipients | serhiy.storchaka |
| Date | 2018-07-28.20:29:44 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1532809784.27.0.56676864532.issue34235@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-07-28 20:29:44 | serhiy.storchaka | set | recipients: + serhiy.storchaka |
| 2018-07-28 20:29:44 | serhiy.storchaka | set | messageid: <1532809784.27.0.56676864532.issue34235@psf.upfronthosting.co.za> |
| 2018-07-28 20:29:44 | serhiy.storchaka | link | issue34235 messages |
| 2018-07-28 20:29:44 | serhiy.storchaka | create | |