]> granicus.if.org Git - python/commit
PyArg_Parse*("Z#") raises an error for unknown type
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 8 Jun 2010 21:45:51 +0000 (21:45 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 8 Jun 2010 21:45:51 +0000 (21:45 +0000)
commit5216e6d598ce7bbc542f5e443073dbc03306c143
tree1c9310465b0c02d0a7416a586d9875724e158d26
parent55a5c78e4dc4393ef0c57602775db2d3d704be36
PyArg_Parse*("Z#") raises an error for unknown type

instead of ignoring the error and leave the pointer to the string and the size
unchanged (not initialized).

Fix also the type in the error message of "Z", "Z#" and "Y" formats.
Python/getargs.c