Message209127
In general, that sounds like a reasonable suggestion to me. A quick search shows that most classes that call _PyArg_NoKeywords check the type first. I think we should strive for uniformity in this respect, so I'm +1 for your suggestion.
I do see some classes which accept only positional arguments but where that check isn't in place. Examples:
* itertools.tee just calls PyArg_ParseTuple without checking _PyArg_NoKeywords (is this a bug?) (this is fairly common, I think)
* range always calls _PyArg_NoKeywords, without checking the type (is this a bug?) (this is rare) |
|
Date |
User |
Action |
Args |
2014-01-24 22:05:15 | taleinat | set | recipients:
+ taleinat, larry |
2014-01-24 22:05:15 | taleinat | set | messageid: <1390601115.12.0.944934769846.issue20385@psf.upfronthosting.co.za> |
2014-01-24 22:05:15 | taleinat | link | issue20385 messages |
2014-01-24 22:05:14 | taleinat | create | |
|