diff --git a/docs/overview.rst b/docs/overview.rst index a7b2acf..6a3c76f 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -36,7 +36,7 @@ to states and functions to services. Pyscript supports imports, although by default the valid import list is restricted for security reasons (there is a configuration option ``allow_all_imports`` to allow all imports). Pyscript supports almost all Python language features except -generator functions, ``yield``, and defining special class methods. +generator functions, ``yield``, and a few special class methods (see `language limitations `__). Pyscript provides a handful of additional built-in functions that connect to HASS features, like logging, accessing state variables as strings diff --git a/docs/reference.rst b/docs/reference.rst index 81df819..a562094 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -1273,9 +1273,9 @@ Other Function Decorators ^^^^^^^^^^^^^^^^^ By default in pyscript all functions are async, so they cannot be used in ``task.executor``, -as callbacks or methods in Python packages that expect regular functions, or used with built-in -functions like ``filter``, ``map`` or special class methods that are called by Python internals -(e.g., ``__getattr__`` or ``__del__``). +as callbacks or methods in Python packages that expect regular functions, with built-in +functions like ``filter`` or ``map``, or as a few special class methods, such as ``__setattr__`` +and ``__del__`` (most special methods do work; see `Language Limitations <#language-limitations>`__). The ``@pyscript_compile`` decorator causes the function to be treated as native Python and compiled, which results in a regular Python function being defined, and it will run at full