[Python-Dev] str.lstrip bug?

2015-03-10 Thread lou xiao
I find a bug in str.lstrip, when i call str.lstrip, i get this result. tiny➜ ~ python Python 2.7.5+ (default, Feb 27 2014, 19:37:08) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> a='device_info' >>> a.lstrip('device') '_info' >>> a.lstrip('device_

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

2015-03-10 Thread lou xiao
ths, i misunderstood the method 2015-03-11 1:33 GMT+08:00 Chris Angelico : > On Wed, Mar 11, 2015 at 4:27 AM, lou xiao wrote: > > I find a bug in str.lstrip, when i call str.lstrip, i get this result. > > > > tiny➜ ~ python > > Python 2.7.5+ (default, Feb 27 2014, 1