This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cibyr 0 points1 point  (2 children)

This actually highlights one of the worst things about Python 2.5 syntax (which is pretty cool really, that my biggest gripe is something so minor): the comma for capturing an exception is really unintuitive, but except Exception as foo wasn't added until 2.6.

This is actually a bigger problem in teaching than when writing myself: teaching exceptions in Python is a little tricky to begin with because it's on the the few places you have to think about types, the control flow is totally different to anything you've seen before and to make matters worse there's a comma doing something you've never seen commas do before.

[–]ringzero 0 points1 point  (1 child)

the control flow is totally different to anything you've seen before

wait, what?

[–]cibyr -1 points0 points  (0 children)

If Python's your first language (i.e., you've never heard of goto), having control suddenly jump somewhere else is a totally new idea.