hy/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
..
compilers Merge pull request #719 from unmerged/nonlocal-keyword 2015-06-22 09:55:51 -04:00
importer hy/compiler.py: import only handles HySymbol and HyList, bail on others 2014-02-11 17:29:50 +01:00
lex Add set literals (closes #827) 2015-07-14 23:59:29 +03:00
macros Add tests for _wrap_value 2014-09-21 12:08:14 -04:00
models Add set literals (closes #827) 2015-07-14 23:59:29 +03:00
native_tests implement keyword-only arguments 2015-07-22 21:53:06 -07:00
resources Fixes a long-standing bug in import under Python 3.3 and later. 2014-12-07 11:02:48 -07:00
test_files Run file using hy -i 2015-02-28 18:11:42 +10:00
__init__.py Merge branch 'master' into pr/579 2014-11-15 08:02:41 -05:00
test_bin.py Run file using hy -i 2015-02-28 18:11:42 +10:00