[New-bugs-announce] [issue12204] str.upper converts to title

py.user report at bugs.python.org
Sun May 29 06:49:20 CEST 2011


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

specification

1)
str.upper()¶

    Return a copy of the string converted to uppercase.

2)
str.isupper()¶

    Return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise. Cased characters are those with general category property being one of “Lu”, “Ll”, or “Lt” and uppercase characters are those with general category property “Lu”.

>>> '\u1ff3'
'ῳ'
>>> '\u1ff3'.islower()
True
>>> '\u1ff3'.upper()
'ῼ'
>>> '\u1ff3'.upper().isupper()
False
>>>

----------
components: None
messages: 137167
nosy: py.user
priority: normal
severity: normal
status: open
title: str.upper converts to title
type: behavior
versions: Python 3.1

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


More information about the New-bugs-announce mailing list