This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, docs@python, eric.araujo
Date 2010-12-15.20:05:00
SpamBayes Score 2.2498732e-06
Marked as misclassified No
Message-id <1292443502.29.0.95173238155.issue10702@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 


str.capitalize()
bytes.capitalize()
bytearray.capitalize()

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()[0] == ord('è')
True

and for unicode strings the operation is *not* locale dependent.
History
Date User Action Args
2010-12-15 20:05:02belopolskysetrecipients: + belopolsky, eric.araujo, docs@python
2010-12-15 20:05:02belopolskysetmessageid: <1292443502.29.0.95173238155.issue10702@psf.upfronthosting.co.za>
2010-12-15 20:05:00belopolskylinkissue10702 messages
2010-12-15 20:05:00belopolskycreate