The raise statement allows the programmer to force a specified exception to occur. For example:
>>> raise NameError, 'HiThere' Traceback (innermost last): File "<stdin>", line 1 NameError: HiThere