Re: substring search without using built in utils

2006-11-13 Thread Bruno Desthuilliers
John Machin wrote: > Bruno Desthuilliers wrote: >> Gabriel Genellina wrote: >>> At Wednesday 8/11/2006 22:29, zeal elite wrote: >>> I am looking for substring search python program without using the built in funtions like find, or 'in'. >>> The only reasonable usage for such a constraint

Re: substring search without using built in utils

2006-11-10 Thread [EMAIL PROTECTED]
My lecture Mustafa Başer give me the same homework.But u have to check similar algorithm at c then you can manipulate the same functions for python.Cause other languages (except C#, java etc.) does not have a strong library as python.Or alternatively you can check the source codes too see beh

Re: substring search without using built in utils

2006-11-09 Thread Hendrik van Rooyen
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote: 8<-- > Given a source list, find the offset of a target sub-list within the > source list, in other words, find for lists. > > i.e. search(source, target) returns n if source[n:n+len(target)] == target > for any sequence type. >

Re: substring search without using built in utils

2006-11-09 Thread John Machin
Steven D'Aprano wrote: > On Thu, 09 Nov 2006 03:31:02 -0800, John Machin wrote: > > > > > Bruno Desthuilliers wrote: > >> Gabriel Genellina wrote: > >> > At Wednesday 8/11/2006 22:29, zeal elite wrote: > >> > > >> >> I am looking for substring search python program without using the > >> >> built

Re: substring search without using built in utils

2006-11-09 Thread Steven D'Aprano
On Thu, 09 Nov 2006 03:31:02 -0800, John Machin wrote: > > Bruno Desthuilliers wrote: >> Gabriel Genellina wrote: >> > At Wednesday 8/11/2006 22:29, zeal elite wrote: >> > >> >> I am looking for substring search python program without using the >> >> built in funtions like find, or 'in'. >> > >>

Re: substring search without using built in utils

2006-11-09 Thread Bernard
do your homework and use regexes! but the find() and in() function works great for normal strings...why don't you want to use them? zeal elite a écrit : > Hi, > > I am looking for substring search python program without using the built in > funtions like find, or 'in'. > > Appreciate it. Thanks i

Re: substring search without using built in utils

2006-11-09 Thread John Machin
Bruno Desthuilliers wrote: > Gabriel Genellina wrote: > > At Wednesday 8/11/2006 22:29, zeal elite wrote: > > > >> I am looking for substring search python program without using the > >> built in funtions like find, or 'in'. > > > > The only reasonable usage for such a constraint would be a school

Re: substring search without using built in utils

2006-11-09 Thread Bruno Desthuilliers
Gabriel Genellina wrote: > At Wednesday 8/11/2006 22:29, zeal elite wrote: > >> I am looking for substring search python program without using the >> built in funtions like find, or 'in'. > > The only reasonable usage for such a constraint would be a school > assignment so: don't cheat and do you

Re: substring search without using built in utils

2006-11-08 Thread Gabriel Genellina
At Wednesday 8/11/2006 22:29, zeal elite wrote: I am looking for substring search python program without using the built in funtions like find, or 'in'. The only reasonable usage for such a constraint would be a school assignment so: don't cheat and do your homework! -- Gabriel Genellina S

substring search without using built in utils

2006-11-08 Thread zeal elite
Hi, I am looking for substring search python program without using the built in funtions like find, or 'in'. Appreciate it. Thanks in advance. zeal _ Find a local pizza place, music store, museum and more…then map the best route