Check out the new USENIX Web site.
[ActiveState] Raising python exceptions

Python exceptions can be raised directly from Perl with:

  Python::raise($type, $value)

The Python::Err::-functions also return the standard python exception type objects if called without arguments. They can be used together with Python::raise() like this:

  Python::raise(Python::Err::IndexError,
                "out of range")

 www.ActiveState.com 21/32 ««/\»»