mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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.
This commit is contained in:
@@ -69,6 +69,7 @@ Q(__str__)
|
||||
#if MICROPY_PY_DESCRIPTORS
|
||||
Q(__get__)
|
||||
Q(__set__)
|
||||
Q(__delete__)
|
||||
#endif
|
||||
Q(__getattr__)
|
||||
Q(__del__)
|
||||
|
||||
Reference in New Issue
Block a user