two ideoms at one blow: line-reading and regexp-matching
Ralph Corderoy
ralph at inputplus.demon.co.uk
Mon Mar 11 06:15:59 EST 2002
Hi Gustavo,
> But you impact legibility:
>
> mo = findSomething.search(someString)
> while mo:
> ....
> ....
> mo = findSomething.search(someString)
>
> is much more understandable than:
No, it's atrocious because it duplicates code, giving a good chance
that one will be edited in the future and not the other.
Cheers,
Ralph.
More information about the Python-list
mailing list