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.
This commit is contained in:
chrysn
2016-01-13 12:29:17 +01:00
committed by Paul Sokolovsky
parent dea585f8ae
commit f8ba2eca80
3 changed files with 21 additions and 19 deletions

View File

@@ -570,6 +570,7 @@ Q(property)
Q(getter)
Q(setter)
Q(deleter)
Q(doc)
#endif
#if MICROPY_PY_UZLIB