In Python 2.x, the only use of from
is for the from x import y
statement. However, for Python 3.x, it can be used in conjunction with the raise
statement, e.g.:
try:
raise Exception("test")
except Exception as e:
raise Exception("another exception") from e