[Python-3000] Exception Expressions (original) (raw)
Jim Jewett jimjjewett at gmail.com
Thu Aug 31 20:21:32 CEST 2006
- Previous message: [Python-3000] Exception Expressions
- Next message: [Python-3000] Exception Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
expr1 except expr2 if exctype ... print letters[7] except "N/A" if IndexError
I sort of like it, though I'm more worried than you about ugly code.
There have been many times when I wanted it so that I could use a list comprehension (or generator comprehension) instead of a function or block.
The bad news is that I seem to be an anti-channeller, so my interest is perhaps not a good sign.
-jJ
- Previous message: [Python-3000] Exception Expressions
- Next message: [Python-3000] Exception Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]