What is the difference between \',\' and \'as\' in except statements, eg:
try: pass except Exception, exception: pass
and:
If you want to support all python versions you can use the sys.exc_info() function like this:
sys.exc_info()
try: a = 1/'0' except (ZeroDivisionError, TypeError): e = sys.exc_info()[1] print(e.args[0])
(source:http://python3porting.com/noconv.html)