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

3.0 documentation mentions using maketrans from within the string module. #48855

Closed
suicideducky mannequin opened this issue Dec 9, 2008 · 2 comments
Closed

3.0 documentation mentions using maketrans from within the string module. #48855

suicideducky mannequin opened this issue Dec 9, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@suicideducky
Copy link
Mannequin

suicideducky mannequin commented Dec 9, 2008

BPO 4605
Nosy @birkenfeld, @benjaminp

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 = 'https://github.com/birkenfeld'
closed_at = <Date 2008-12-13.03:03:59.153>
created_at = <Date 2008-12-09.00:30:28.373>
labels = ['docs']
title = '3.0 documentation mentions using maketrans from within the string module.'
updated_at = <Date 2008-12-13.03:03:59.069>
user = 'https://bugs.python.org/suicideducky'

bugs.python.org fields:

activity = <Date 2008-12-13.03:03:59.069>
actor = 'benjamin.peterson'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-12-13.03:03:59.153>
closer = 'benjamin.peterson'
components = ['Documentation']
creation = <Date 2008-12-09.00:30:28.373>
creator = 'suicideducky'
dependencies = []
files = []
hgrepos = []
issue_num = 4605
keywords = []
message_count = 2.0
messages = ['77379', '77713']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'benjamin.peterson', 'suicideducky']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4605'
versions = ['Python 3.0']

@suicideducky
Copy link
Mannequin Author

suicideducky mannequin commented Dec 9, 2008

http://docs.python.org/3.0/library/stdtypes.html#str.translate
mentions the following:
"You can use the maketrans() helper function in the string module to
create a translation table."

But maketrans is now a string method not just a function of the string
module. It even mentions that right above it that it is now a method of
string objects:
"A map for translate() is usually best created by str.maketrans()."

The page where this all appears in is:
http://docs.python.org/3.0/library/stdtypes.html

It may have just not been updated fully from an older release.
If I am mistaken and this is not a bug, I appologise.

@suicideducky suicideducky mannequin assigned birkenfeld Dec 9, 2008
@suicideducky suicideducky mannequin added the docs Documentation in the Doc dir label Dec 9, 2008
@benjaminp
Copy link
Contributor

Thanks for the report! Fixed in r67724.

@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
Projects
None yet
Development

No branches or pull requests

2 participants