matching one time through a loop

Kragen Sitaker kragen at pobox.com
Wed May 29 23:22:07 EDT 2002


"Corey G." <ctgaff at attbi.com> writes:
> I have a script that parses some email from a Maildir directory 
> and I am looking for the number 550.  I want to stop searching once 
> the first occurrence is found in order to save time and be efficient.  
> This sort of thing can be done in Perl using the "last" statement.  

break




More information about the Python-list mailing list