iterate lines with regex

Jochen Schulz ml at
Sat Aug 1 21:55:31 CEST 2009

Michael Savarese:
> for line in readThis:
>     try:
>         thisKey =
>         thisMap =
>         thisParcel =
>     except:
>         continue

Why do you catch all exceptions in that loop? Remove the try-except
clause including the 'continue' and a stacktrace will probybably tell
you why your loop appears to do nothing.

A passionate argument means more to me than a blockbuster movie.
[Agree]   [Disagree]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <>

More information about the Python-list mailing list