[New-bugs-announce] [issue9091] str.capitalize() should not lower the rest of the string

Esteban Feldman report at bugs.python.org
Sun Jun 27 05:34:04 CEST 2010


New submission from Esteban Feldman <esteban.feldman at gmail.com>:

As per documentation:
I doesn't say anything on lower the rest of the string.
Is this the expected behavior?

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

For 8-bit strings, this method is locale-dependent.
**

Example:

Python 2.6.5 (r265:79063, May 24 2010, 14:03:08) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 'this is a TEST'
>>> a.capitalize()
'This is a test'

----------
components: Library (Lib)
messages: 108772
nosy: eka
priority: normal
severity: normal
status: open
title: str.capitalize() should not lower the rest of the string
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list