Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reference.html#language-limitations>`__).
Pyscript provides a handful of additional built-in functions that connect
to HASS features, like logging, accessing state variables as strings
Expand Down
6 changes: 3 additions & 3 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading