diff options
author | chrysn <chrysn@fsfe.org> | 2016-01-13 12:29:17 +0100 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-01-14 21:15:18 +0200 |
commit | f8ba2eca804ae167d6597cc89eb270ddd8e1ce23 (patch) | |
tree | 49f6143c77a0dd90c493b922bcaee689958526fb /py/qstrdefs.h | |
parent | dea585f8ae71be75021e8a9513278c04e4d6a423 (diff) |
builtin property: accept keyword arguments
this allows python code to use property(lambda:..., doc=...) idiom.
named versions for the fget, fset and fdel arguments are left out in the
interest of saving space; they are rarely used and easy to enable when
actually needed.
a test case is included.
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 496896dad..50f2b3b38 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -570,6 +570,7 @@ Q(property) Q(getter) Q(setter) Q(deleter) +Q(doc) #endif #if MICROPY_PY_UZLIB |