Check out the new USENIX Web site.
[ActiveState] Python::Err::

Functions are provided in the Python::Err:: namespace to classify python exceptions. These can be used to test $@ directly. E.g.:

  eval {
      ... py_func(); ...
  };
  if (Python::Err::IndexError($@)) {
      # handle it
      ...
  }
  elsif ($@) {
      die;  # propagate
  }

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