[docs] [issue14586] TypeError: truncate() takes no keyword arguments

Guy Taylor report at bugs.python.org
Mon Apr 16 21:48:15 CEST 2012


Guy Taylor <thebigguy.co.uk at gmail.com> added the comment:

@murray The thing I would be worried at in both supporting truncate(0) and truncate(size=0) would be truncate(0, size=1). This could throw an exception but causes the need for extra sanity checks and introduces ambiguity in the otherwise 'only one way to do something' Python style.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14586>
_______________________________________


More information about the docs mailing list