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

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

Tries to get the attribute, returns undefined otherwise.

Parameters

name: string

Name of the attribute.

Returns

PyObject | undefined

Python object