[issue27506] make bytes/bytearray delete a keyword argument
Martin Panter
report at bugs.python.org
Wed Jul 13 18:49:42 EDT 2016
Martin Panter added the comment:
Instead of allowing delete=None (which is not in the RST documentation), perhaps it is possible to change the doc string. I can’t remember the details, but I think Argument Clinic allows a virtual Python-level default, something like “object(py_default=b"") = NULL”.
Also, I think I like the change. What do you think about making the first argument optional (default to None), allowing calls like x.translate(delete=b'aeiou')?
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27506>
_______________________________________
More information about the Python-bugs-list
mailing list