summaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-02-14 18:43:54 +0100
committerDamien George <damien.p.george@gmail.com>2015-03-26 23:55:14 +0000
commit28fa84b4454ef253dfba5f1ceb023be2184a7271 (patch)
tree628ba6762450f90282c305eb0b8f4bc5dde8778e /py/qstrdefs.h
parentc260836beb10b1d81c98732c2b7282eb6675140a (diff)
py: Add optional support for descriptors' __get__ and __set__ methods.
Disabled by default. Enabled on unix and windows ports.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index dc1f082da..3c4106e85 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -66,6 +66,10 @@ Q(__add__)
Q(__sub__)
Q(__repr__)
Q(__str__)
+#if MICROPY_PY_DESCRIPTORS
+Q(__get__)
+Q(__set__)
+#endif
Q(__getattr__)
Q(__del__)
Q(__call__)