Difference between raise Exception, "foo" and raise Exception("foo")?

Viewed 4297

The title is pretty self explanatory -- what's the difference between:

raise Exception, "foo"

and

raise Exception("foo")

Does it do exactly the same thing, just different syntax?

I'm using Python 2.x, but I'd like to hear of any differences in Python 3.x

1 Answers
Related