Guy Doune <[EMAIL PROTECTED]> wrote:
>Ok, didn't show the whole problem...
>
>I will read the doc anyway, but why "questions.html" keep it "t"??
>
> >>> test=['03.html', '06.html', 'questions.html', '04.html',
>'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
> >>> test[4]
>'toc
Guy Doune wrote:
Guy Doune a écrit :
Ok, didn't show the whole problem...
I will read the doc anyway, but why "questions.html" keep it "t"??
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
>>> test[4]
'toc.html
On Fri, 5 Dec 2008 at 07:54, Mark Tolonen wrote:
> > import re
> > re.split('[,.]','blah,blah.blah')
['blah', 'blah', 'blah']
Thank you. Somehow it never occurred to me that I could use that
kind of pattern that way. I guess my brain just doesn't think
in regexes very well :)
--RDM
--
htt
[EMAIL PROTECTED] wrote:
On Thu, 4 Dec 2008 at 20:54, Terry Reedy wrote:
'toc.html'
> > > test[4].strip('.html')
'oc'
Can't figure out what is going on, really.
What I can't figure out is why, when people cannot figure out what is
going on with a function (or methods in this case), they
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Thu, 4 Dec 2008 at 20:54, Terry Reedy wrote:
[snip]
I have often wished that in 'split' I could specify a _set_ of characters
on which the string would be split, in the same way the default list
of whitespace characters causes a s
On Thu, 4 Dec 2008 at 20:54, Terry Reedy wrote:
'toc.html'
> > > test[4].strip('.html')
'oc'
Can't figure out what is going on, really.
What I can't figure out is why, when people cannot figure out what is going
on with a function (or methods in this case), they do not look it up the doc.
"Guy Doune" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Ok, didn't show the whole problem...
I will read the doc anyway, but why "questions.html" keep it "t"??
>>> test=['03.html', '06.html', 'questions.html', '04.html', 'toc.html',
'01.html', '05.html', '07.html', '02.html'
Guy Doune a écrit :
Ok, didn't show the whole problem...
I will read the doc anyway, but why "questions.html" keep it "t"??
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
>>> test[4]
'toc.html'
>>> test[4].stri
Ok, didn't show the whole problem...
I will read the doc anyway, but why "questions.html" keep it "t"??
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
>>> test[4]
'toc.html'
>>> test[4].strip('.html')
'oc'
>>> tes
Guy Doune wrote:
Hi everybody,
Could it be a bug?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html',
Guy Doune wrote:
Hi everybody,
Could it be a bug?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html',
On Fri, Dec 5, 2008 at 9:35 AM, Guy Doune <[EMAIL PROTECTED]> wrote:
test=['03.html', '06.html', 'questions.html', '04.html', 'toc.html',
'01.html', '05.html', '07.html', '02.html', '08.html']
test
> ['03.html', '06.html', 'questions.html', '04.html', 'toc.html', '01.html',
> '05.htm
In article <[EMAIL PROTECTED]>, Guy Doune <[EMAIL PROTECTED]>
wrote:
> Could it be a bug?
>
> Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> test=['03.html', '06.h
Guy Doune wrote:
Hi everybody,
Could it be a bug?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html',
Hi everybody,
Could it be a bug?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html', '01.html', '05.html
15 matches
Mail list logo