]> granicus.if.org Git - python/commit
Two improvements suggested by Greg Stein:
authorBarry Warsaw <barry@python.org>
Mon, 27 Aug 2001 03:11:09 +0000 (03:11 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 27 Aug 2001 03:11:09 +0000 (03:11 +0000)
commit7c47beb860fcea2029850f1036fe1be216aab78e
treef8f5d5120237de1c7264d9d33d1bedc8ee70be40
parent5a6fdcd3718927109592c6df692fe24a8fdaee31
Two improvements suggested by Greg Stein:

PyString_FromFormatV(): In the final resize at the end, we can use
    PyString_AS_STRING() since we know the object is a string and can
    avoid the typechecking.

PyString_FromFormat(): GS sez: "For safety/propriety, you should call
    va_end() on the vargs variable."
Objects/stringobject.c