16e908d56e
Python has the keyword.iskeyword method we can leverage for Python keywords, but we also need to address Hy builtins like 'get' or 'slice'. And to make behavior compatible with Python 2 or 3, we also make a special case to prevent assignment to False, True or None as well as the Hy versions: false, true, null, and nil. For non-Hy modules, we also check to make sure the symbol is not part of the compiler. This allows shadow.hy to override "+" but prevents general use from re-defn-ing 'get' or 'do'. |
||
---|---|---|
.. | ||
contrib | ||
__init__.hy | ||
cons.hy | ||
core.hy | ||
defclass.hy | ||
language.hy | ||
math.hy | ||
native_macros.hy | ||
quote.hy | ||
reader_macros.hy | ||
shadow.hy | ||
unless.hy | ||
when.hy | ||
with_decorator.hy | ||
with_test.hy |