[issue12385] the help for bytearray.maketrans describes bytes.maketrans

2011-06-27 Thread Roundup Robot

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: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12385] the help for bytearray.maketrans describes bytes.maketrans

2011-06-21 Thread R. David Murray

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.murray
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.2, Python 3.3 -Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12385] the help for bytearray.maketrans describes bytes.maketrans

2011-06-21 Thread py.user

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 to.
The strings frm and to must be of the same length.

--
assignee: docs@python
components: Documentation
messages: 138808
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: the help for bytearray.maketrans describes bytes.maketrans
versions: Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com