homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

AltStyle によって変換されたページ (->オリジナル) /