Re: [Python-Dev] str.lstrip bug?

2015年3月10日 10:47:27 -0700

* lou xiao <[email protected]> [2015年03月11日 01:27:21 +0800]:
> I find a bug in str.lstrip, when i call str.lstrip, i get this result.
You're misunderstanding how str.strip works. It takes a set of
characters and removes them all from the beginning:
 >>> "abababcd".lstrip('ab')
 >>> 'cd'
Florian
-- 
http://www.the-compiler.org | [email protected] (Mail/XMPP)
 GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
 I love long mails! | http://email.is-not-s.ms/

Attachment: pgpJPx9uFbx98.pgp
Description: PGP signature

_______________________________________________
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