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/2015-March/138725.html below:

[Python-Dev] str.lstrip bug?

[Python-Dev] str.lstrip bug? [Python-Dev] str.lstrip bug?Stephen J. Turnbull stephen at xemacs.org
Tue Mar 10 19:42:20 CET 2015
lou xiao writes:

 > I find a bug in str.lstrip, when i call str.lstrip, i get this result.

 > >>> a.lstrip('device_')
 > 'nfo'
 > >>>

Try

    a.lstrip('_ecived')

You'll see that you get the same result.  I suspect that you
misunderstand the meaning of the argument, which is not a sequence of
characters, but a *set* of characters.

More information about the Python-Dev mailing list

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