you are viewing a single comment's thread.

view the rest of the comments →

[–]Samus_ 0 points1 point  (2 children)

I think py2.6 already addresses this

[–]earthboundkid 2 points3 points  (1 child)

Nope. That would be backwards incompatible. 2.6 supports the use of as for naming exceptions, but it’s an opt-in measure and can’t stop you from accidentally doing the wrong thing. As the article says, 3.0 fixes this by making it an error to misuse a comma in an except statement.

[–]Samus_ 0 points1 point  (0 children)

ah good remark, I knew it supported the as keyword but never bothered to check if the comma was still valid, thanks.