Author nchammas
Recipients docs@python, nchammas
Date 2016-02-10.19:52:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455133964.48.0.745384045329.issue26334@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-02-10 19:52:44nchammassetrecipients: + nchammas, docs@python
2016-02-10 19:52:44nchammassetmessageid: <1455133964.48.0.745384045329.issue26334@psf.upfronthosting.co.za>
2016-02-10 19:52:44nchammaslinkissue26334 messages
2016-02-10 19:52:44nchammascreate