Is there anyway to write an exception catch code that's compatible from python 2.4 to python 3?
Like this code:
# only works in python 2.4 to 2.7
try:
pass
except Exception,e:
print(e)
# only works in python 2.6 to 3.3
try:
pass
except Exception as e:
print(e)