Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/python/mod.ts>PyObject#valueOf

๐Ÿ Python interpreter bindings for Deno and Bun.
Latest
method PyObject.prototype.valueOf
import { PyObject } from "https://deno.land/x/python@0.4.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.