Re: how to find difference in number of characters

2010-10-09 Thread Diez B. Roggisch
harryos writes: > On Oct 9, 4:52 pm, Peter Otten <__pete...@web.de> wrote: > >> >> You might get more/better answers if you tell us more about the context of >> the problem and add some details that may be relevant. >> >> Peter > > I am trying to determine if a wep page is updated by x number of

Re: how to find difference in number of characters

2010-10-09 Thread harryos
On Oct 9, 4:52 pm, Peter Otten <__pete...@web.de> wrote: > > You might get more/better answers if you tell us more about the context of > the problem and add some details that may be relevant. > > Peter I am trying to determine if a wep page is updated by x number of characters..Mozilla firefox p

Re: how to find difference in number of characters

2010-10-09 Thread Peter Otten
harryos wrote: > but is there a way I can use difflib module to do this job? I'm afraid I can't help you with that. You might get more/better answers if you tell us more about the context of the problem and add some details that may be relevant. Peter -- http://mail.python.org/mailman/listi

Re: how to find difference in number of characters

2010-10-09 Thread harryos
On Oct 9, 2:45 pm, Peter Otten <__pete...@web.de> wrote: > > What would be an acceptable time? > Thanks for the reply Peter, I was using python functions I came across the net..not cpython implementations..Probably my low config machine is also to blame..(I am no expert at judging algorithm perfo

Re: how to find difference in number of characters

2010-10-09 Thread Peter Otten
harryos wrote: > I am trying to write a compare method which takes two strings and find > how many characters have changed. > > > def compare_strings(s1,s2): > pass > > > text1="goat milk" > text2="cow milk" > print compare_strings(text1,text2) > > This must give 3 ,since 3 characters are