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

x/python/mod.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.3/mod.ts";

Tries to get the attribute, returns undefined otherwise.

Parameters

name: string

Name of the attribute.

Returns

PyObject | undefined

Python object