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#asDict

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

Casts a Dict Python object as JS Map value.

Note: from supports converting both Map and Object to Python Dict. But this only supports returning a Map.