hy/tests/native_tests
Zack M. Davis ef079d5e08 implement keyword-only arguments
Python 3 supports keyword-only arguments as described in the immortal
PEP 3102. This commit implements keyword-only argument support for Hy
using a `&kwonly` lambda-list-keyword with semantics analogous how
`&optional` arguments are handled: `&kwonly` arguments are either a
symbol, in which case the keyword argument so named is mandatory, or a
two-element list, the first of which is the symbolic name of the keyword
argument and the second of which is its default value if not
supplied. If Hy is running under Python 2, attempting to use `&kwonly`
args will raise a HyTypeError.

This effort is with the aim of resolving #453.
2015-07-22 21:53:06 -07:00
..
2013-03-05 18:39:34 -05:00
2014-12-07 11:52:09 +10:00
2013-12-27 13:50:19 -07:00
2013-12-27 13:50:19 -07:00
2013-12-29 16:50:21 +01:00