[issue17806] Add keyword args support to str/bytes.expandtabs()

Mark Dickinson report at bugs.python.org
Sat May 4 22:03:05 CEST 2013


Mark Dickinson added the comment:

> For me s.expandtabs(3) looks more readable than s.expandtabs(tabsize=3).

I disagree:  I think the second is more readable, and I think it's especially helpful to those not intimately familiar with the language (which probably accounts for the vast majority of Python users) to see code like "s.expandtabs(tabsize=3)", or "int(43, base=8)", or "s.splitlines(keepends=True)":  such code is instantly understandable, whereas someone seeing "s.splitlines(True)" likely has to stop and wonder what the "True" is doing.

----------

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


More information about the Python-bugs-list mailing list