[Python-Dev] surprising bug in s.capitalize()?

James C. Ahlstrom jim@interet.com
Thu, 30 Nov 2000 13:49:28 -0500

"Barry A. Warsaw" wrote:
> I was just surprised by something I've never observed before from
> string.capitalize().  There is clearly either a bug (really two) in
> the code or in the documentation.
> >>> '__Myfoo'.capitalize()
> '__myfoo'
> Huh?  The documentation says:

I guess I am a total geek, but it seems right to me.  The
capital of "_" is "_", and the rest was converted to lower