[issue14586] TypeError: truncate() takes no keyword arguments
Guy Taylor
report at bugs.python.org
Mon Apr 16 09:47:43 CEST 2012
Guy Taylor <thebigguy.co.uk at gmail.com> added the comment:
What ever change is made to the new CPythons the old docs should be updated to prevent confusion, with truncate([size]).
On fixing it for the future I would agree that supporting it as a keyword argument is preferred, as it is more pythonic (in my opinion). However this would cause ether backwards incompatibility or ambiguity in the language (ie. truncate(0, size=1) or need the deprecate, warn then removal stages taken three release cycles).
Maybe the less perfect but acceptable solution is just to change the docs and wait for Python 4k for the real fix....?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14586>
_______________________________________
More information about the Python-bugs-list
mailing list