[Tutor] Flow control question.

Clay Shirky clay at shirky.com
Mon Aug 11 16:27:19 EDT 2003


> I'm a bit confused;

No, I was confused.

> for new_address in new_addresses:
>   result = test_mac(new_address)
>   if new_address == 0:
>        continue # I want to skip the next test

/me slaps head

Thanks -- I forgot I didn't call test_mac until the equivalence test,
meaning there was no return value to test in the first place.

Many thanks.

-clay
 




More information about the Tutor mailing list