Date: 2004-11-09 05:19 pm (UTC)
'or' is is a boolean shortcircuit operator and not really a postcondition, though the shorcircuit part makes it work like one, just like 'and' can work as an 'if' statement:

(!open(my $fh, $filename)) and die "Can't open $filename: $!\n";

Switching back to the main topic of conversation, the one thing in Python I occassionally really really want is a 'repeat..until' loop for cases where I want some code executed at least once but likely more.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
.

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags