[issue8347] string capitalize erroneously lower-case any non-first letters

Martin report at bugs.python.org
Thu Apr 8 19:05:33 CEST 2010


New submission from Martin <famart80 at gmail.com>:

When the following is run:
  s='the Los Angeles Symphony';
  s.capitalize();
it displays 'The los angeles symphony'
instead of 'The Los Angeles Symphony'

the str.capitalize() should only deal with the first letter, not lower-case the rest of the letters. The manual correctly describes this, but the actual behavior is not consistent with this description.

----------
components: None
messages: 102629
nosy: famart
severity: normal
status: open
title: string capitalize erroneously lower-case any non-first letters
type: behavior
versions: Python 2.6

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


More information about the Python-bugs-list mailing list