Re: Stripping parts of a path

2008-07-27 Thread Tim Cook
On Sun, 2008-07-27 at 04:32 +, 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

Re: Stripping parts of a path

2008-07-26 Thread Tim Roberts
Tim Cook <[EMAIL PROTECTED]> wrote: > >I just ran into an issue with the rstrip method when using it on path >strings. > >When executing a function I have a need to strip off a portion of the >current working directory and add on a path to a log file. Initially >this worked great but then I added

Re: Stripping parts of a path

2008-07-26 Thread Dan Stromberg
On Sat, 26 Jul 2008 08:59:15 -0300, Tim Cook wrote: > Hi All, > > I just ran into an issue with the rstrip method when using it on path > strings. > > When executing a function I have a need to strip off a portion of the > current working directory and add on a path to a log file. Initially > t

Re: Stripping parts of a path

2008-07-26 Thread Larry Bates
Tim Cook wrote: Hi All, I just ran into an issue with the rstrip method when using it on path strings. When executing a function I have a need to strip off a portion of the current working directory and add on a path to a log file. Initially this worked great but then I added a branch in SVN w

Re: Stripping parts of a path

2008-07-26 Thread Karen Tracey
On Sat, Jul 26, 2008 at 7:59 AM, Tim Cook <[EMAIL PROTECTED]>wrote: > Hi All, > > I just ran into an issue with the rstrip method when using it on path > strings. > > When executing a function I have a need to strip off a portion of the > current working directory and add on a path to a log file.

Stripping parts of a path

2008-07-26 Thread Tim Cook
Hi All, I just ran into an issue with the rstrip method when using it on path strings. When executing a function I have a need to strip off a portion of the current working directory and add on a path to a log file. Initially this worked great but then I added a branch in SVN which caused the pa