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

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

Checks if Python object has an attribute of given name.

Parameters

attr: string