Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/python/src/python.ts>PyObject#valueOf

🐍 Python interpreter bindings for Deno and Bun.
Go to Latest
method PyObject.prototype.valueOf
import { PyObject } from "https://deno.land/x/python@0.4.2/src/python.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.