]> granicus.if.org Git - python/commit
vgetargskeywords:
authorTim Peters <tim.peters@gmail.com>
Sat, 27 Oct 2001 05:07:41 +0000 (05:07 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 27 Oct 2001 05:07:41 +0000 (05:07 +0000)
commitb054be41c0cc5315d53c665195fecd0e977c4ff3
tree8d4834d246f8eb016be2724c5d669334444457b8
parentb0872fc8a6045e66df687d978be67d299cbc50e1
vgetargskeywords:
+ Generally test nkeywords against 0 instead of keywords against NULL
  (saves a little work if an empty keywords dict is passed, and is
  conceptually more on-target regardless).
+ When a call erroneously specifies a keyword argument both by position
  and by keyword name:
    - It was easy to provoke this routine into an internal buffer overrun
      by using a long argument name.  Now uses PyErr_format instead (which
      computes a safe buffer size).
    - Improved the error msg.
Python/getargs.c