Message260034
The docs for `bytes.translate()` [0] show the following signature:
```
bytes.translate(table[, delete])
```
However, calling this method with keyword arguments yields:
```
>>> b''.translate(table='la table', delete=b'delete')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: translate() takes no keyword arguments
```
I'm guessing other methods have this same issue. (e.g. `str.translate()`)
Do the docs need to be updated, or should these methods be updated to accept keyword arguments, or something else?
[0] https://docs.python.org/3/library/stdtypes.html#bytes.translate |
|
| Date |
User |
Action |
Args |
| 2016-02-10 19:52:44 | nchammas | set | recipients:
+ nchammas, docs@python |
| 2016-02-10 19:52:44 | nchammas | set | messageid: <1455133964.48.0.745384045329.issue26334@psf.upfronthosting.co.za> |
| 2016-02-10 19:52:44 | nchammas | link | issue26334 messages |
| 2016-02-10 19:52:44 | nchammas | create | |
|