[docs] [issue14586] TypeError: truncate() takes no keyword arguments
report at bugs.python.org
Tue Apr 17 00:58:43 CEST 2012
Georg Brandl <georg at python.org> added the comment:
The patch is wrong: PyArg_ParseTupleAndKeywords already handles the correct assignment of positional and keyword args, and raises exceptions accordingly. Did you test that code?
The question is also: why only truncate()? There are several other fileio_* methods that take VARARGS only.
Python tracker <report at bugs.python.org>
More information about the docs