<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Sep 7, 2011, at 10:26 AM, Stephen J. Turnbull wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Bitstream Vera Sans Mono'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">How about "title"?</span></span></blockquote></div><br><div><div>&gt;&gt;&gt; 'content-length'.title()</div><div>'Content-Length'</div></div><div><br></div><div>You might say that the protocol "has" to be case-insensitive so this is a silly frill: there are <i>definitely</i>&nbsp;enough case-sensitive crappy bits of network middleware out there that this function is critically important for an HTTP server.</div><div><br></div><div>In general I'd like to defend keeping as many of these methods as possible for compatibility (porting to Py3 is already hard enough). &nbsp;Although even I might have a hard time defending 'swapcase', which is never used _at all_ within Twisted, on text or bytes. &nbsp;The only use-case I can think of for that method is goofy joke text filters, and it wouldn't be very good at that either.</div><div><br></div><div>-glyph</div><div><br></div></body></html>