]> granicus.if.org Git - python/commit
prevent the dict constructor from accepting non-string keyword args #8419
authorBenjamin Peterson <benjamin@python.org>
Sat, 24 Apr 2010 18:21:17 +0000 (18:21 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 24 Apr 2010 18:21:17 +0000 (18:21 +0000)
commitfb88636199c12f63d6c8c89f311cdafc91f30d2f
tree24b2758c45ac543fe9970f861ca091852a8f4a94
parentb962171414aa2cfe3dbfbd4294819a4153a7bd6c
prevent the dict constructor from accepting non-string keyword args #8419

This adds PyArg_ValidateKeywordArguments, which checks that keyword arguments
are all strings, using an optimized method if possible.
Doc/c-api/arg.rst
Include/dictobject.h
Include/modsupport.h
Lib/test/test_dict.py
Misc/NEWS
Objects/dictobject.c
Python/getargs.c