[docs] [issue26334] bytes.translate() doesn't take keyword arguments; docs suggests it does

Martin Panter report at bugs.python.org
Sun Feb 14 05:51:23 EST 2016

Martin Panter added the comment:

Nicholas, there is Issue 8706 about converting functions and methods to accept keywords in general.

There is also the slash “/” indicator proposed by PEP 457, which is used for some functions in pydoc; bytes.replace() for instance. In Issue 23738 I was trying to get some consensus on using this slash notation in the main documentation, in which case bytes.translate() could look like

bytes.translate(table, delete=b"", /)

And there is Issue 21314 about where to document the slash notation that is already used in pydoc.

nosy: +martin.panter
superseder:  -> accept keyword arguments on most base type methods and builtins

Python tracker <report at bugs.python.org>

More information about the docs mailing list