[Python-Dev] str.lstrip bug?

2015年3月12日 00:57:06 -0700

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.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to