from(pythonObject:interpreter:)

Converts a Python to a Swift value of the receiver type.

Declaration

static func from(
    pythonObject: Object,
    interpreter: Interpreter
) throws -> PythonClass

Parameters

  • pythonObject: The Python object to be converted.

  • interpreter: The Python interpreter.

Returns

A Swift value.

Discussion

Note

This documentation comment was inherited from Parsable.