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 frispete
Recipients frispete, orsenthil
Date 2008-03-30.12:12:25
SpamBayes Score 0.16313796
Marked as misclassified No
Message-id <1206879148.43.0.181211248011.issue2275@psf.upfronthosting.co.za>
In-reply-to
Content
> But should not this patch be handled in a way wherein.
> key.capitalize() is just replaced by key.upper()?

Hmm, are you sure?
>>> "hello".upper()
'HELLO'
>>> 

but the issue is with values containing dashes:
>>> 'accept-charset'.capitalize()
'Accept-charset'
whereas the rest of the world would expect:
'Accept-Charset'
        ^

This is especially useful, if you try to emulate the behavior of a
typical browser as close as possible.
History
Date User Action Args
2008-03-30 12:12:28frispetesetspambayes_score: 0.163138 -> 0.16313796
recipients: + frispete, orsenthil
2008-03-30 12:12:28frispetesetspambayes_score: 0.163138 -> 0.163138
messageid: <1206879148.43.0.181211248011.issue2275@psf.upfronthosting.co.za>
2008-03-30 12:12:27frispetelinkissue2275 messages
2008-03-30 12:12:26frispetecreate