[New-bugs-announce] [issue12266] str.capitalize contradicts

py.user report at bugs.python.org
Sun Jun 5 07:54:59 CEST 2011


New submission from py.user <port139 at yandex.ru>:

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

----------
components: Interpreter Core
messages: 137682
nosy: py.user
priority: normal
severity: normal
status: open
title: str.capitalize contradicts
versions: Python 3.1

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


More information about the New-bugs-announce mailing list