Is there a difference between “raise exception()” and “raise exception” without parenthesis?

StackOverflow

Defining a parameterless exception:

class MyException(Exception):
    pass

When raised, is there any difference between:

raise MyException

and

raise MyException()

I couldn"t find any; is it simply an overloaded syntax?





Get Solution for free from DataCamp guru