Timeline for answer to Correct way of handling exceptions in Python? by Peter Ericson
Current License: CC BY-SA 2.5
Post Revisions
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 12, 2009 at 9:12 | comment | added | Tom | this looks intuitive to me, and this is probably also what it would look like in java, because you dont have the luxury of an "else" statement there. You also didnt have this before python2.5 iirc. It was introduced in the docs to avoid large try blocks but still keep the grouping nice and obvious, so all code that belongs together will still be in the same try...except...else block, without blowing the try part out of proprtions. as the pythonians are so attached to their style guides and peps, i figured this would be the correct way to go. | |
| Jun 12, 2009 at 3:09 | history | answered | Peter Ericson | CC BY-SA 2.5 |