In python2, this is valid:
>>> try:
...     pass
... except Exception as (e, b):
...     pass
But in python3, I get a syntax error:
>>> try:
...     pass
... except Exception as (e, b):
  File "<stdin>", line 3
    except Exception as (e, b):
                        ^
SyntaxError: invalid syntax
How do I catch a tuple() exception in python 3?
Edit:
After some input, I did some more digging and I'll change the question:
I see this syntax in python2:
try:
    pass
except Exception, (num, msg):
    pass
And I have no idea what this does, but the syntax is valid in python2. This is a syntax error in python3, so I converted it to this:
try:
    pass
except Exception as (num, msg):
    pass
Which is still a syntax error. So, I guess the question is now, what was the original intent of the first syntax, and how is that done in python3 now?
 
    