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
..
contrib contrib.walk: Coerce non-list iterables into list form 2015-07-15 16:59:49 +02:00
__init__.hy ideas, ideas. 2013-03-05 18:39:34 -05:00
cons.hy Add a cons object and related mechanisms 2014-01-23 23:08:52 +01:00
core.hy Re-implemented last function so that it also supports iterators. Added a test to reflect this. 2015-04-07 10:30:52 +01:00
defclass.hy Add macro expansion in defclass 2014-12-07 11:52:09 +10:00
language.hy merge branch 'additional_unpacking_correctness' 2015-07-22 21:26:38 -07:00
mathematics.hy adds support for Python 3.5 infix matrix multiplication 2015-04-12 21:45:39 -07:00
native_macros.hy Make (defmain ...) a clean macro 2015-06-15 21:11:48 +02:00
py3_only_tests.hy implement keyword-only arguments 2015-07-22 21:53:06 -07:00
quote.hy Remove HyLambdaListKeyword from the parser 2014-06-03 21:36:49 -04:00
reader_macros.hy Fix reader macros to actually be macros 2014-01-17 01:07:47 +01:00
shadow.hy Add shadow functions for comparison operators 2015-04-24 12:19:23 -06:00
unless.hy add nil as synonym for None 2013-12-27 13:50:19 -07:00
when.hy add nil as synonym for None 2013-12-27 13:50:19 -07:00
with_decorator.hy Added a fix for nested decorators. Fixes #752 2015-01-14 19:42:02 +00:00
with_test.hy added for and with macros 2013-12-29 16:50:21 +01:00