[docs] bug in doc (formatting)

Sandro Tosi sandro.tosi at gmail.com
Sun Jun 17 19:37:17 CEST 2012


Hello Christopher,
thanks for your email.

On Tue, Jun 12, 2012 at 10:25 PM, Mahan, Christopher
<christopher.mahan at bankofamerica.com> wrote:
> http://docs.python.org/library/string.html
>
> the header Deprecated String Functions seems to include string functions
> that are not deprecated.

Even thought not all those functions are deprecated explicitly, you
should consider them "deprecated" in the sense that you should not use
them, but the same methods provided by string/unicode object; f.e.

# deprecated
>>> string.capitalize('asdf asdf')
'Asdf asdf'

# correct
>>> 'asdf asdf'.capitalize()
'Asdf asdf'

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list