diff options
author | dmazzella <damianomazzella@gmail.com> | 2017-01-03 11:00:12 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-02-09 12:40:15 +1100 |
commit | 18e65691661ef8e83060d0e72d66b16cc918c8b4 (patch) | |
tree | d1d7f8b5d86c0119a061bf08d07ccec5d827f7c5 /unix/mpconfigport_coverage.h | |
parent | ec7dc7f8d796b5b67772d1f40863d13fb5e19be2 (diff) | |
download | micropython-18e65691661ef8e83060d0e72d66b16cc918c8b4.tar.gz micropython-18e65691661ef8e83060d0e72d66b16cc918c8b4.zip |
py/objtype: Implement __delattr__ and __setattr__.
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.
Diffstat (limited to 'unix/mpconfigport_coverage.h')
-rw-r--r-- | unix/mpconfigport_coverage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport_coverage.h b/unix/mpconfigport_coverage.h index 87a743cf87..9df8d0fca8 100644 --- a/unix/mpconfigport_coverage.h +++ b/unix/mpconfigport_coverage.h @@ -32,6 +32,7 @@ #include <mpconfigport.h> +#define MICROPY_PY_DELATTR_SETATTR (1) #define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY_BUILTINS_HELP_MODULES (1) #define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) |