[Python-bugs-list] [ python-Bugs-817407 ] string.capitalize() broken?

SourceForge.net noreply at sourceforge.net
Fri Oct 3 17:16:44 EDT 2003


Bugs item #817407, was opened at 2003-10-03 15:34
Message generated for change (Comment added) made by gaul
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=817407&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Cliff Resnick (cresny)
Assigned to: Nobody/Anonymous (nobody)
Summary: string.capitalize() broken?

Initial Comment:
string.capitalize is capitalizing first character and 

lowercasing all following characters (as with 'title'), not 

just capitalizing first char.



----------------------------------------------------------------------

Comment By: Andrew Gaul (gaul)
Date: 2003-10-03 16:16

Message:
Logged In: YES 
user_id=139865

Python 2.3.2 (#1, Oct  3 2003, 15:28:48)

[GCC 3.3.1] on linux2

Type "help", "copyright", "credits" or "license" for more

information.

>>> help(''.capitalize)

Help on built-in function capitalize:



capitalize(...)

    S.capitalize() -> string



    Return a copy of the string S with *only* its first

character

    capitalized.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=817407&group_id=5470



More information about the Python-bugs-list mailing list