hy/docs/extra/reserved.rst
Kodi Arfer 484daafa53 Move hy.core.reserved to hy.extra.reserved (#1231)
It was an odd one out by being in hy.core but needing to be called by a qualified name. It's at home in hy.extra.
2017-03-02 16:49:32 -06:00

20 lines
458 B
ReStructuredText

==============
Reserved Names
==============
names
=====
Usage: ``(names)``
This function can be used to get a list (actually, a ``frozenset``) of the
names of Hy's built-in functions, macros, and special forms. The output
also includes all Python reserved words. All names are in unmangled form
(e.g., ``list-comp`` rather than ``list_comp``).
.. code-block:: hy
=> (import hy.extra.reserved)
=> (in "defclass" (hy.extra.reserved.names))
True