[New-bugs-announce] [issue4605] 3.0 documentation mentions using maketrans from within the string module.

chris report at bugs.python.org
Tue Dec 9 01:30:29 CET 2008


New submission from chris <followingthepath at gmail.com>:

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.

----------
assignee: georg.brandl
components: Documentation
messages: 77379
nosy: georg.brandl, suicideducky
severity: normal
status: open
title: 3.0 documentation mentions using maketrans from within the string module.
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4605>
_______________________________________


More information about the New-bugs-announce mailing list