Roundup Robot added the comment:
New changeset 586745894ab8 by Senthil Kumaran in branch '3.2':
Fix closes Issue12385 - Clarify maketrans method docstring for bytes and
bytearray object.
http://hg.python.org/cpython/rev/586745894ab8
--
nosy: +python-dev
resolution: -> fixed
stage: nee
R. David Murray added the comment:
Hmm. I wonder why we have two copies of this method.
Well, given that we do, the best fix for the docs would be to say "for use in
the bytes or bytearray translate method" in both this docstring and the
bytes.maketrans docstring.
--
nosy: +r.david.
New submission from py.user :
help(bytearray.maketrans)
maketrans(...)
B.maketrans(frm, to) -> translation table
Return a translation table (a bytes object of length 256)
suitable for use in bytes.translate where each byte in frm is
mapped to the byte at the same position in