Issue 12385: the help for bytearray.maketrans describes bytes.maketrans (original) (raw)

Issue12385

Created on 2011-06-21 23:35 by py.user, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg138808 - (view) Author: py.user (py.user) * Date: 2011-06-21 23:35
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 to. The strings frm and to must be of the same length.
msg138810 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-06-22 00:15
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.
msg139308 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-27 16:07
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
History
Date User Action Args
2022-04-11 14:57:18 admin set github: 56594
2011-06-27 16:07:25 python-dev set status: open -> closednosy: + python-devmessages: + resolution: fixedstage: needs patch -> resolved
2011-06-22 00:15:47 r.david.murray set versions: + Python 3.2, Python 3.3, - Python 3.1nosy: + r.david.murraymessages: + type: behaviorstage: needs patch
2011-06-21 23:35:00 py.user create