public enum PythonError : Error, Equatable
extension PythonError : CustomStringConvertible

An error produced by a failable Python operation.

  • A Python runtime exception, produced by calling a Python function.


    case exception(PythonObject, traceback: PythonObject?)
  • A failed call on a PythonObject. Reasons for failure include:

    • A non-callable Python object was called.
    • An incorrect number of arguments were provided to the callable Python object.
    • An invalid keyword argument was specified.


    case invalidCall(PythonObject)
  • A module import error.


    case invalidModule(String)
  • Declaration

    public var description: String { get }