diff options
author | stijn <stinos@zoho.com> | 2015-02-14 18:43:54 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-26 23:55:14 +0000 |
commit | 28fa84b4454ef253dfba5f1ceb023be2184a7271 (patch) | |
tree | 628ba6762450f90282c305eb0b8f4bc5dde8778e /py/qstrdefs.h | |
parent | c260836beb10b1d81c98732c2b7282eb6675140a (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.h | 4 |
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__) |