[docs] [issue10702] bytes and bytearray methods are not documented
report at bugs.python.org
Wed Dec 15 21:05:02 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
> I was persuaded there was already a bug open with a patch adding
> bytes and bytearray in the sequence methods table, but I can’t find it.
I can't find it either, but this issue is different. I propose renaming "String Methods" to "String, bytes and bytearray methods" and
Return a copy of the string with its first character capitalized and the rest lowercased. [Discuss Unicode vs bytes details.]
BTW, the "For 8-bit strings, this method is locale-dependent." part is probably out of date because bytes.capitalize() seems to pass non-ASCII bytes through:
>>> bytes([ord('è')]).capitalize() == ord('è')
and for unicode strings the operation is *not* locale dependent.
Python tracker <report at bugs.python.org>
More information about the docs