hy/hy
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
core Make (defmain ...) a clean macro 2015-06-15 21:11:48 +02:00
lex Add set literals (closes #827) 2015-07-14 23:59:29 +03:00
models Add set literals (closes #827) 2015-07-14 23:59:29 +03:00
__init__.py Add set literals (closes #827) 2015-07-14 23:59:29 +03:00
__main__.py Typo fixes in comments 2014-05-02 21:31:51 +05:30
_compat.py adds support for Python 3.5 infix matrix multiplication 2015-04-12 21:45:39 -07:00
cmdline.py Run file using hy -i 2015-02-28 18:11:42 +10:00
compiler.py implement keyword-only arguments 2015-07-22 21:53:06 -07:00
completer.py move imports and operators to satisfy new version of pep8 checker 2015-02-16 22:21:49 -08:00
errors.py distinguish IOError when loading file from that raised by program itself 2015-02-16 14:27:18 -08:00
importer.py distinguish IOError when loading file from that raised by program itself 2015-02-16 14:27:18 -08:00
macros.py HyMacroExpansionError shouldn't truncate message 2014-11-27 15:29:34 -08:00
version.py 0.11.0 Release. 2015-05-09 14:16:28 -04:00