Georg Brandl <[email protected]> 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. ---------- nosy: +georg.brandl _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue14586> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
