A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-November/010830.html below:

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

[Python-Dev] surprising bug in s.capitalize()? [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
case.

JimA



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4