]> granicus.if.org Git - python/commit
PyArg_ParseTupleAndKeywords: return false on internal error, not -1 (I
authorTim Peters <tim.peters@gmail.com>
Sat, 27 Oct 2001 04:26:57 +0000 (04:26 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 27 Oct 2001 04:26:57 +0000 (04:26 +0000)
commitf8cd3e86218d8fda0da7feb1db939709a6c4f379
tree265c87511ae721d3c87642e2576c017e46b3c7b9
parent45772cde7e6d936cb37a4762eba3ca23c0b1c667
PyArg_ParseTupleAndKeywords:  return false on internal error, not -1 (I
introduced this bug just a little while ago, when *adding* internal error
checks).

vgetargskeywords:  Rewrote the section that crawls over the format string.
+ Added block comment so it won't take the next person 15 minutes to
  reverse-engineer what it's doing.
+ Lined up the "else" clauses.
+ Rearranged the ifs in decreasing order of likelihood (for speed).
Python/getargs.c