Re: strip module bug

2008-10-14 Thread Tim Roberts
"Poppy" <[EMAIL PROTECTED]> wrote: > >Thanks Steven and Tim, I understand the strip module a lot more today. It's NOT a module. It is a method of string objects. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: strip module bug

2008-10-13 Thread Poppy
Thanks Steven and Tim, I understand the strip module a lot more today. Also for some reason I was deciding against using the path functions but now decided to try and thus implemented them. My script is reading one file and writing a new file with a different extension. So based on your suggest

Re: strip module bug

2008-10-13 Thread Steven D'Aprano
On Mon, 13 Oct 2008 08:50:41 -0400, Poppy wrote: > I'm using versions 2.5.2 and 2.5.1 of python and have encountered a > potential bug. Not sure if I'm misunderstanding the usage of the strip > function but here's my example. > > var = "detail.xml" > print var.strip(".xml") ### expect to see 'd

Re: strip module bug

2008-10-13 Thread Tim Chase
I'm using versions 2.5.2 and 2.5.1 of python and have encountered a potential bug. Not sure if I'm misunderstanding the usage of the strip function but here's my example. var = "detail.xml" print var.strip(".xml") ### expect to see 'detail', but get 'detai' var = "overview.xml" print var.stri

Re: strip module bug

2008-10-13 Thread bearophileHUGS
Poppy: > var = "detail.xml" > print var.strip(".xml") ### expect to see 'detail', but get 'detai' > var = "overview.xml" > print var.strip(".xml") ### expect and get 'overview' Python V.2.5 is not flawless, but you can't find bugs so easily. I've found only two bugs in about three years of conti

Re: strip module bug

2008-10-13 Thread Peter Otten
Poppy wrote: > > I'm using versions 2.5.2 and 2.5.1 of python and have encountered a > potential bug. Not sure if I'm misunderstanding the usage of the strip > function but here's my example. > > var = "detail.xml" > print var.strip(".xml") ### expect to see 'detail', but get 'detai' > var = "

strip module bug

2008-10-13 Thread Poppy
I'm using versions 2.5.2 and 2.5.1 of python and have encountered a potential bug. Not sure if I'm misunderstanding the usage of the strip function but here's my example. var = "detail.xml" print var.strip(".xml") ### expect to see 'detail', but get 'detai' var = "overview.xml" print var.stri