Author serhiy.storchaka
Recipients abacabadabacaba, alex, barry, docs@python, serhiy.storchaka
Date 2016-05-06.07:40:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462520409.09.0.437184323867.issue18531@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2016-05-06 07:40:09serhiy.storchakasetrecipients: + serhiy.storchaka, barry, alex, abacabadabacaba, docs@python
2016-05-06 07:40:09serhiy.storchakasetmessageid: <1462520409.09.0.437184323867.issue18531@psf.upfronthosting.co.za>
2016-05-06 07:40:09serhiy.storchakalinkissue18531 messages
2016-05-06 07:40:07serhiy.storchakacreate