@@ -1540,6 +1540,12 @@ access (use of, assignment to, or deletion of ``x.name``) for class instances.
1540
1540
result of implicit invocation via language syntax or built-in functions.
1541
1541
See :ref: `special-lookup `.
1542
1542
1543
+ .. audit-event :: object.__getattr__ obj,name object.__getattribute__
1544
+
1545
+ For certain sensitive attribute accesses, raises an
1546
+ :ref: `auditing event <auditing >` ``object.__getattr__ `` with arguments
1547
+ ``obj `` and ``name ``.
1548
+
1543
1549
1544
1550
.. method :: object.__setattr__(self, name, value)
1545
1551
@@ -1551,12 +1557,24 @@ access (use of, assignment to, or deletion of ``x.name``) for class instances.
1551
1557
call the base class method with the same name, for example,
1552
1558
``object.__setattr__(self, name, value) ``.
1553
1559
1560
+ .. audit-event :: object.__setattr__ obj,name,value object.__setattr__
1561
+
1562
+ For certain sensitive attribute assignments, raises an
1563
+ :ref: `auditing event <auditing >` ``object.__setattr__ `` with arguments
1564
+ ``obj ``, ``name ``, ``value ``.
1565
+
1554
1566
1555
1567
.. method :: object.__delattr__(self, name)
1556
1568
1557
1569
Like :meth: `__setattr__ ` but for attribute deletion instead of assignment. This
1558
1570
should only be implemented if ``del obj.name `` is meaningful for the object.
1559
1571
1572
+ .. audit-event :: object.__delattr__ obj,name object.__delattr__
1573
+
1574
+ For certain sensitive attribute deletions, raises an
1575
+ :ref: `auditing event <auditing >` ``object.__delattr__ `` with arguments
1576
+ ``obj `` and ``name ``.
1577
+
1560
1578
1561
1579
.. method :: object.__dir__(self)
1562
1580
0 commit comments