matching one time through a loop
Sean 'Shaleh' Perry
shalehperry at attbi.com
Wed May 29 21:28:15 EDT 2002
On 30-May-2002 Corey G. wrote:
> 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.
> I achieved my goal by using a counter but it seems terribly inefficient.
> Any ideas?
>
um, 'break'?
More information about the Python-list
mailing list