484daafa53
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.
20 lines
458 B
ReStructuredText
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
|