try ... except ... as error in Python 2.5 - Python 3.x

I want to keep & use the error value of an exception in both Python 2.5, 2.7 and 3.2. In Python 2.5 and 2.7 (but not 3.x), this works: try: print(10 * (1/0)) except ZeroDivisionError, er...