[issue8706] accept keyword arguments on all base type methods and builtins

Raymond Hettinger report at bugs.python.org
Tue Feb 28 03:03:44 CET 2012


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

For many builtins, this would be a total waste, slowing down the calls, and supplying keyword names that would be meaningless or just weird.  For example, chr(i=65) is just a waste.

Keyword args should only be added where they would add clarity to something that would otherwise be ambiguous.

FWIW, that is the reason that sorted() required a keyword argument.  It prevents confusion between key-functions and cmp-functions.

----------

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


More information about the Python-bugs-list mailing list