diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-04 20:15:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-04 20:15:31 +0100 |
commit | 56606f3475dc3feecc3fde2fef6cd42fb5ee2bac (patch) | |
tree | 764cd62b237cd0152bb852afe33e0704afdb05f7 /py/qstrdefs.h | |
parent | 0528c5a22a7668e3056a0e3005bf96358df2c52b (diff) | |
download | micropython-56606f3475dc3feecc3fde2fef6cd42fb5ee2bac.tar.gz micropython-56606f3475dc3feecc3fde2fef6cd42fb5ee2bac.zip |
py: Implement delete for property and descriptors.
Without this patch deleting a property, or class with descriptor, will
call the setter with a NULL value and lead to a crash.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 446d86cb84..acf63e738f 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -69,6 +69,7 @@ Q(__str__) #if MICROPY_PY_DESCRIPTORS Q(__get__) Q(__set__) +Q(__delete__) #endif Q(__getattr__) Q(__del__) |