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

x/python/mod.ts>PyObject#valueOf

🐍 Python interpreter bindings for Deno.
Go to Latest
method PyObject.prototype.valueOf
import { PyObject } from "https://deno.land/x/python@0.2.3/mod.ts";

Tries to guess the value of the Python object.

Only primitives are casted as JS value type, otherwise returns a proxy to Python object.