STINNER Victor added the comment: 2016-10-21 5:17 GMT+02:00 Martin Panter <rep...@bugs.python.org>: > The idea of changing the signature is to avoid people thinking it accepts a > keyword argument. See e.g. Issue 25030 for seek(offset, whence=SEEK_SET), > Issue 14586 for truncate(size=None).
Ah. Maybe we should modify the code to accept a keyword argument? :-) Or we might use the strange "read1(\, size=1)" syntax of Argument Clinic. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23214> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com