Another Wart! string.find() [ was: namespace issue? ]

Aahz Maruch aahz at panix.com
Fri Jun 22 16:40:29 EDT 2001


In article <3B337D2B.35F2FD47 at home.net>,
Chris Barker  <chrishbarker at home.net> wrote:
>
>YEECCHHH!!!
>
>Never raise an exception for a perfectly normal, it will happen all the
>time event. 

I guess you'd better stop using for loops, then.


(for loops get terminated by trapping the IndexError exception)
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"Truth is stranger than fiction, but it is because Fiction is obliged to
stick to possibilities; Truth isn't."  --Samuel Clemens



More information about the Python-list mailing list