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.

Author py.user
Recipients py.user
Date 2011-06-05.05:54:58
SpamBayes Score 0.0052688634
Marked as misclassified No
Message-id <1307253299.62.0.8609224268.issue12266@psf.upfronthosting.co.za>
In-reply-to
Content
specification

str.capitalize()¶

    Return a copy of the string with its first character capitalized and the rest lowercased.


>>> '\u1ffc', '\u1ff3'
('ῼ', 'ῳ')
>>> '\u1ffc'.isupper()
False
>>> '\u1ff3'.islower()
True
>>> s = '\u1ff3\u1ff3\u1ffc\u1ffc'
>>> s
'ῳῳῼῼ'
>>> s.capitalize()
'ῼῳῼῼ'
>>>

A: lower
B: title

A -> B & !B -> A
History
Date User Action Args
2011-06-05 05:54:59py.usersetrecipients: + py.user
2011-06-05 05:54:59py.usersetmessageid: <1307253299.62.0.8609224268.issue12266@psf.upfronthosting.co.za>
2011-06-05 05:54:59py.userlinkissue12266 messages
2011-06-05 05:54:58py.usercreate