substring search without using built in utils
Bruno Desthuilliers
onurb at xiludom.gro
Mon Nov 13 06:00:34 EST 2006
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 would be a school
>>> assignment so: don't cheat and do your homework!
>>>
>> OTHO, looking for existing solutions to a same or similar problem and
>> studying them is usually considerer good practice in real-life
>> programming jobs !-)
>>
>
> Looking at an existing solution for substring search that was coded in
> Python, instead of using the built-in functionality would IMHO be
> considered extremely bad practice in a real-life programming job.
>
Indeed.
FWIW, and if it wasn't clear enough, my post was meant to be somewhat
ironic...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list