Hello:
I'm seeing some strange behavior with lstrip operating
on string representations of *nix-style file paths
Example:
>>> s = '/home/test/'
>>> s1 = s.lstrip('/home')
>>> s1
'test/' ## '/test/' was expected! '/' was unexpectedly removed
Any comments or corrective measures are welcome
thanks
Tim
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
- [Tutor] lstrip removes '/' unexpectedly Tim Johnson
- Re: [Tutor] lstrip removes '/' unexpectedly Tiago Saboga
- Re: [Tutor] lstrip removes '/' unexpectedly Eric Brunson
- Re: [Tutor] lstrip removes '/' unexpectedly Tim Johnson
- Re: [Tutor] lstrip removes '/' unexpectedly Tim Johnson
- Re: [Tutor] lstrip removes '/' unexpectedly Tim Johnson
- Re: [Tutor] lstrip removes '/' unexpectedly jim stockford
- Re: [Tutor] lstrip removes '/' unexpectedly Kent Johnson
- Re: [Tutor] lstrip removes '/' unexpectedly Danny Yoo
- Re: [Tutor] lstrip removes '/' unexpectedly Ricardo Aráoz
- Re: [Tutor] lstrip removes '/' unexpectedly Aditya Lal
