Stripping parts of a path

Tim Cook timothywayne.cook at
Sun Jul 27 10:23:38 CEST 2008

On Sun, 2008-07-27 at 04:32 +0000, Tim Roberts wrote:

> This doesn't do what you think it does.  The parameter to rstrip is a set:
> as long as the last character is in the set 'abcdhiloprs/', it will remove
> it and check the next one.  All of the characters in "shop" are in that
> set.

Thanks for all the replies.
You are correct I misunderstood the docs.  Finding and slicing works


Join the OSHIP project.  It is the standards based, open source
healthcare application platform in Python.
Home page: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Python-list mailing list