Message264943
Yet one difference is that kwargs can be NULL in C function if no keyword arguments are supplied.
Here is a patch that adds tests for exact types of args and kwargs arguments in C functions.
I think that we should keep passing NULL as kwargs for performance reasons. But shouldn't we convert dict subclass to exact dict? I think there are good reasons to do this. Some functions can save kwargs for latter use. And this makes the implementation more consistent with PyPy.
If defaultdict behavior is needed for formatting, there is format_map(). |
|
Date |
User |
Action |
Args |
2016-05-06 07:40:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, alex, abacabadabacaba, docs@python |
2016-05-06 07:40:09 | serhiy.storchaka | set | messageid: <1462520409.09.0.437184323867.issue18531@psf.upfronthosting.co.za> |
2016-05-06 07:40:09 | serhiy.storchaka | link | issue18531 messages |
2016-05-06 07:40:07 | serhiy.storchaka | create | |
|