summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_delattr_setattr.py
Commit message (Collapse)AuthorAge
* py/objobject: Add object.__delattr__ function.Yonatan Goldschmidt2019-12-21
| | | | Similar to object.__setattr__.
* py/objobject: Add object.__setattr__ function.Yonatan Goldschmidt2019-12-21
| | | | | | Allows assigning attributes on class instances that implement their own __setattr__. Both object.__setattr__ and super(A, b).__setattr__ will work with this commit.
* tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* py/objtype: Implement __delattr__ and __setattr__.dmazzella2017-02-09
This patch implements support for class methods __delattr__ and __setattr__ for customising attribute access. It is controlled by the config option MICROPY_PY_DELATTR_SETATTR and is disabled by default.