2017-03-02 23:49:32 +01:00
|
|
|
==============
|
|
|
|
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
|
2018-06-12 20:13:06 +02:00
|
|
|
(e.g., ``not-in`` rather than ``not_in``).
|
2017-03-02 23:49:32 +01:00
|
|
|
|
|
|
|
.. code-block:: hy
|
|
|
|
|
|
|
|
=> (import hy.extra.reserved)
|
|
|
|
=> (in "defclass" (hy.extra.reserved.names))
|
|
|
|
True
|