Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the help for bytearray.maketrans describes bytes.maketrans #56594

Closed
py-user mannequin opened this issue Jun 21, 2011 · 3 comments
Closed

the help for bytearray.maketrans describes bytes.maketrans #56594

py-user mannequin opened this issue Jun 21, 2011 · 3 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@py-user
Copy link
Mannequin

py-user mannequin commented Jun 21, 2011

BPO 12385
Nosy @bitdancer, @py-user

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-06-27.16:07:25.933>
created_at = <Date 2011-06-21.23:35:00.296>
labels = ['type-bug', 'docs']
title = 'the help for bytearray.maketrans describes bytes.maketrans'
updated_at = <Date 2011-06-27.16:07:25.931>
user = 'https://github.com/py-user'

bugs.python.org fields:

activity = <Date 2011-06-27.16:07:25.931>
actor = 'python-dev'
assignee = 'docs@python'
closed = True
closed_date = <Date 2011-06-27.16:07:25.933>
closer = 'python-dev'
components = ['Documentation']
creation = <Date 2011-06-21.23:35:00.296>
creator = 'py.user'
dependencies = []
files = []
hgrepos = []
issue_num = 12385
keywords = []
message_count = 3.0
messages = ['138808', '138810', '139308']
nosy_count = 4.0
nosy_names = ['r.david.murray', 'docs@python', 'py.user', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12385'
versions = ['Python 3.2', 'Python 3.3']

@py-user
Copy link
Mannequin Author

py-user mannequin commented Jun 21, 2011

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.

@py-user py-user mannequin assigned docspython Jun 21, 2011
@py-user py-user mannequin added the docs Documentation in the Doc dir label Jun 21, 2011
@bitdancer
Copy link
Member

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.

@bitdancer bitdancer added the type-bug An unexpected behavior, bug, or error label Jun 22, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 27, 2011

New changeset 586745894ab8 by Senthil Kumaran in branch '3.2':
Fix closes bpo-12385 - Clarify maketrans method docstring for bytes and bytearray object.
http://hg.python.org/cpython/rev/586745894ab8

@python-dev python-dev mannequin closed this as completed Jun 27, 2011
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant