ef079d5e08
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. |
||
---|---|---|
.. | ||
compilers | ||
importer | ||
lex | ||
macros | ||
models | ||
native_tests | ||
resources | ||
test_files | ||
__init__.py | ||
test_bin.py |