Name
setAttribute
Synopsis
e
.setAttribute(name
,value
)
Changes e
’s attribute
with the given name
to have the given
value
, or adds to
e
a new attribute with the given
name
and value
if e
had no attribute named
name
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.