This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: string.capitlize() documentation
Type: behavior Stage:
Components: Documentation Versions: Python 2.7, Python 2.6, Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: Dude-X, r.david.murray
Priority: normal Keywords:

Created on 2002-06-20 19:03 by mdcowles, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg11284 - (view) Author: Matthew Cowles (mdcowles) Date: 2002-06-20 19:03
(Brought up on python-help)

The documentation for string.capitalize() says:

capitalize(word)
Capitalize the first character of the argument.

while it should really say what the documentation for
the corresponding string method says:

capitalize()
Return a copy of the string with only its first
character capitalized. 

since it makes the rest of the string lowercase.
msg11285 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-06-20 21:20
Logged In: YES 
user_id=3066

Fixed in Doc/lib/libstring.tex revisions 1.47, 1.45.8.2, and
1.42.4.2.
msg127550 - (view) Author: Isaul Vargas (Dude-X) Date: 2011-01-30 20:56
Internal python docs need to be updated.
help(str.capitalize)
still has the old incorrect documentation.

I tested this on Python 2.6 on Windows, and Python 2.7 in Ubuntu 11.04 alpha.
msg127644 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-01-31 19:03
I see correct doc strings on both 2.7 head and 3.1.
History
Date User Action Args
2022-04-10 16:05:26adminsetgithub: 36777
2011-01-31 19:03:32r.david.murraysetnosy: + r.david.murray
messages: + msg127644
2011-01-30 20:56:33Dude-Xsetversions: + Python 2.6, Python 2.5, Python 2.7
nosy: + Dude-X, - fdrake, mdcowles

messages: + msg127550

type: behavior
2002-06-20 19:03:47mdcowlescreate