Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/python/mod.ts>PyObject.from

🐍 Python interpreter bindings for Deno and Bun.
Latest
method PyObject.from
import { PyObject } from "https://deno.land/x/python@0.4.3/mod.ts";

Creates a new Python object from the given JS value.

Only functions are not supported.

Parameters

v: T

JS Value

Returns

Python object