Re: one more question on regex

2016-01-23 Thread Vlastimil Brom
2016-01-22 23:47 GMT+01:00 mg : > Il Fri, 22 Jan 2016 21:10:44 +0100, Vlastimil Brom ha scritto: > >> [...] > > You explanation of re.findall() results is correct. My point is that the > documentation states: > > re.findall(pattern, string, flags=0) > Return all non-overlapping matches of patte

Re: one more question on regex

2016-01-22 Thread mg
Il Fri, 22 Jan 2016 21:10:44 +0100, Vlastimil Brom ha scritto: > 2016-01-22 16:50 GMT+01:00 mg : >> Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto: >> >>> python 3.4.3 >>> >>> import re re.search('(ab){2}','abzzabab') >>> <_sre.SRE_Match object; span=(4, 8), match='abab'> >>> >> re.findall(

Re: one more question on regex

2016-01-22 Thread Vlastimil Brom
2016-01-22 16:50 GMT+01:00 mg : > Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto: > >> python 3.4.3 >> >> import re re.search('(ab){2}','abzzabab') >> <_sre.SRE_Match object; span=(4, 8), match='abab'> >> > re.findall('(ab){2}','abzzabab') >> ['ab'] >> >> Why for search() the match is 'abab'

Re: one more question on regex

2016-01-22 Thread mg
Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto: > python 3.4.3 > > import re re.search('(ab){2}','abzzabab') > <_sre.SRE_Match object; span=(4, 8), match='abab'> > re.findall('(ab){2}','abzzabab') > ['ab'] > > Why for search() the match is 'abab' and for findall the match is 'ab'? find

Re: one more question on regex

2016-01-22 Thread Peter Otten
mg wrote: > python 3.4.3 > > import re > re.search('(ab){2}','abzzabab') > <_sre.SRE_Match object; span=(4, 8), match='abab'> > re.findall('(ab){2}','abzzabab') > ['ab'] > > Why for search() the match is 'abab' and for findall the match is 'ab'? I suppose someone thought it was convenient

one more question on regex

2016-01-22 Thread mg
python 3.4.3 import re re.search('(ab){2}','abzzabab') <_sre.SRE_Match object; span=(4, 8), match='abab'> >>> re.findall('(ab){2}','abzzabab') ['ab'] Why for search() the match is 'abab' and for findall the match is 'ab'? -- https://mail.python.org/mailman/listinfo/python-list

Re: one more question

2009-07-15 Thread alex23
On Jul 16, 2:29 pm, koranthala wrote: > It is not that I do want to do the work for them. It is just that I > was in the same position just 6 months back. My first pieces of code > were very poor - full of errors and quite horrible indeed. I was even > afraid to post it anywhere. I came here, and

Re: one more question

2009-07-15 Thread koranthala
On Jul 16, 7:30 am, alex23 wrote: > On Jul 15, 5:51 pm, koranthala wrote: > > >    I am not saying that what you said was wrong, only that I felt that > > she got tense looking up regular expressions. So a python reply which > > basically does the basic checking without going to re etc might be >

Re: one more question

2009-07-15 Thread alex23
On Jul 15, 5:51 pm, koranthala wrote: >    I am not saying that what you said was wrong, only that I felt that > she got tense looking up regular expressions. So a python reply which > basically does the basic checking without going to re etc might be > more helpful for her to start her own coding

Re: one more question

2009-07-15 Thread koranthala
On Jul 15, 11:56 am, alex23 wrote: > On Jul 15, 4:50 pm, alex23 wrote: > > > amr...@iisermohali.ac.in wrote: > > > I tried but its not coming. > > > How much are you prepared to pay for help with this? Or are you just > > asking us to do all the work for you? > > Or to be a _little_ less blunt: i

Re: one more question

2009-07-15 Thread koranthala
On Jul 15, 11:13 am, amr...@iisermohali.ac.in wrote: > Dear all, > > Just one more thing i want to ask that suppose i have a file like:--- > >  47     8   ALA       H     H      7.85     0.02     1 >  48     8   ALA       HA    H      2.98     0.02     1 >  49     8   ALA       HB    H      1.05  

Re: one more question

2009-07-15 Thread Chris Rebert
On Tue, Jul 14, 2009 at 11:13 PM, wrote: > > Dear all, > > Just one more thing i want to ask that suppose i have a file like:--- > > >  47     8   ALA       H     H      7.85     0.02     1 >  48     8   ALA       HA    H      2.98     0.02     1 >  49     8   ALA       HB    H      1.05     0.02

Re: one more question

2009-07-15 Thread alex23
On Jul 15, 4:50 pm, alex23 wrote: > amr...@iisermohali.ac.in wrote: > > I tried but its not coming. > > How much are you prepared to pay for help with this? Or are you just > asking us to do all the work for you? Or to be a _little_ less blunt: if you want people here to _assist_ you with _your_

Re: one more question

2009-07-14 Thread alex23
amr...@iisermohali.ac.in wrote: > I tried but its not coming. How much are you prepared to pay for help with this? Or are you just asking us to do all the work for you? -- http://mail.python.org/mailman/listinfo/python-list

one more question

2009-07-14 Thread amrita
Dear all, Just one more thing i want to ask that suppose i have a file like:--- 47 8 ALA H H 7.85 0.02 1 48 8 ALA HAH 2.98 0.02 1 49 8 ALA HBH 1.05 0.02 1 50 8 ALA C C179.39 0.3

Re: just one more question about the python challenge

2006-04-13 Thread Jerry
John, If you are really frustrated with this one (like I was on 14), email me off-list to get further hints. I'm willing to help you out. I wish that someone was around to help me work through some of these. I really think they are more fun/helpful when you work on them with another person so if

Re: just one more question about the python challenge

2006-04-13 Thread John Salerno
JW wrote: > There are SEVEN pages of clues for level 12. The most recent post (to > challenge 1) was on April 11, so the forums are most certainly not > dead. I read those seven pages at least twice and they still don't make much sense to me (not to mention that many of the posts are just co

Re: just one more question about the python challenge

2006-04-13 Thread JW
You said: > Sorry to post here about this again, but the hint forums are dead, and > the hints that are already there are absolutely no help (mostly it's > just people saying they are stuck, then responding to themselves saying > the figured it out! not to mention that most of the hints require > g

Re: just one more question about the python challenge

2006-04-13 Thread Jerry
This one threw me for a loop as well. I looked at that gfx file for a whole day before I finally understood what was in it. I only knew to separate it into five piles because of the hint forums though. I guess I'm not intuitive enough. :) I too did this challenge without PIL. Just remember th

Re: just one more question about the python challenge

2006-04-13 Thread Roel Schroeven
John Salerno schreef: > Fredrik Lundh wrote: >> John Salerno wrote: >> At the second, don't rename the file, rename the URL. >>> Do you mean rename the URL *aside from* the file name? >> no, the URL you got when you followed georg's instructions will give you >> some data that you need to mani

Re: just one more question about the python challenge

2006-04-12 Thread Georg Brandl
John Salerno wrote: > Fredrik Lundh wrote: >> John Salerno wrote: >> At the second, don't rename the file, rename the URL. >>> Do you mean rename the URL *aside from* the file name? >> >> no, the URL you got when you followed georg's instructions will give you >> some data that you need to m

Re: just one more question about the python challenge

2006-04-12 Thread Duncan Booth
John Salerno wrote: > Thanks Fredrik. I think my problem lies in not knowing what the 'data' > is I need to move on to the next step of the puzzle. I now have 3 > images, along with gfx file. I know shuffling/unshuffling has > something to do with the puzzle, but I haven't figure out what yet. Am

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Fredrik Lundh wrote: > John Salerno wrote: > >>> At the second, don't rename the file, rename the URL. >> Do you mean rename the URL *aside from* the file name? > > no, the URL you got when you followed georg's instructions will give you > some data that you need to manipulate before you can see

Re: just one more question about the python challenge

2006-04-12 Thread Fredrik Lundh
John Salerno wrote: > > At the second, don't rename the file, rename the URL. > > Do you mean rename the URL *aside from* the file name? no, the URL you got when you followed georg's instructions will give you some data that you need to manipulate before you can see what it is. to figure out how

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Georg Brandl wrote: > At the second, don't rename the file, rename the URL. Do you mean rename the URL *aside from* the file name? Here's the path I've taken so far, with a little spoiler space just in case: SPOILER SPACE * * * * * * * * * * * * * * * * * * * * * * evil.html (starting page) ev

Re: just one more question about the python challenge

2006-04-12 Thread Georg Brandl
John Salerno wrote: > Just wrote: >> In article <[EMAIL PROTECTED]>, >> John Salerno <[EMAIL PROTECTED]> wrote: >> >>> Georg Brandl wrote: >>> Have you found the file? You'll have to distribute that file bytewise in 5 "piles". >>> No, I haven't figured out anything for this puzzle. It s

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Just wrote: > In article <[EMAIL PROTECTED]>, > John Salerno <[EMAIL PROTECTED]> wrote: > >> Georg Brandl wrote: >>> John Salerno wrote: Georg Brandl wrote: > Have you found the file? You'll have to distribute that file bytewise > in 5 "piles". No, I haven't figured out any

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Just wrote: > In article <[EMAIL PROTECTED]>, > John Salerno <[EMAIL PROTECTED]> wrote: > >> Georg Brandl wrote: >> >>> Have you found the file? You'll have to distribute that file bytewise >>> in 5 "piles". >> No, I haven't figured out anything for this puzzle. It seems I might >> have to chang

Re: just one more question about the python challenge

2006-04-12 Thread Just
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: > Georg Brandl wrote: > > John Salerno wrote: > >> Georg Brandl wrote: > >> > >>> Have you found the file? You'll have to distribute that file bytewise > >>> in 5 "piles". > >> No, I haven't figured out anything for this puzz

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Georg Brandl wrote: > John Salerno wrote: >> Georg Brandl wrote: >> >>> Have you found the file? You'll have to distribute that file bytewise >>> in 5 "piles". >> No, I haven't figured out anything for this puzzle. It seems I might >> have to change the filename of the image to something else, but

Re: just one more question about the python challenge

2006-04-12 Thread Just
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: > Georg Brandl wrote: > > > Have you found the file? You'll have to distribute that file bytewise > > in 5 "piles". > > No, I haven't figured out anything for this puzzle. It seems I might > have to change the filename of

Re: just one more question about the python challenge

2006-04-12 Thread Georg Brandl
John Salerno wrote: > Georg Brandl wrote: > >> Have you found the file? You'll have to distribute that file bytewise >> in 5 "piles". > > No, I haven't figured out anything for this puzzle. It seems I might > have to change the filename of the image to something else, but I don't > know what. B

Re: just one more question about the python challenge

2006-04-12 Thread John Salerno
Georg Brandl wrote: > Have you found the file? You'll have to distribute that file bytewise > in 5 "piles". No, I haven't figured out anything for this puzzle. It seems I might have to change the filename of the image to something else, but I don't know what. But even after I find the image, I

Re: just one more question about the python challenge

2006-04-12 Thread Georg Brandl
John Salerno wrote: > Sorry to post here about this again, but the hint forums are dead, and > the hints that are already there are absolutely no help (mostly it's > just people saying they are stuck, then responding to themselves saying > the figured it out! not to mention that most of the hint

just one more question about the python challenge

2006-04-12 Thread John Salerno
Sorry to post here about this again, but the hint forums are dead, and the hints that are already there are absolutely no help (mostly it's just people saying they are stuck, then responding to themselves saying the figured it out! not to mention that most of the hints require getting past a ce

smtp: one more question

2005-01-05 Thread Philippe C. Martin
>Email client = Evolution: the "From" field is blank >Email client = KMail: the "To" field is blank I also notice that emails sent to myself get trashed by my provider - could that be related ? -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *