Skip to content
Update Python subset for kernels authored by Leon Riesebos's avatar Leon Riesebos
......@@ -19,7 +19,7 @@ The kernel code supports a subset of the *Python 3.5* language. This section hig
**Supported**
1. Ranges (i.e. `range()`) and the `len()` function are supported.
1. Operators `round()`, `abs()`, `min()`, and `max()`.
1. Operators `round()`, `abs()`, `min()`, and `max()`. Note that `round()` does not support the `ndigits` argument and will therefore always return an integer.
1. Multiple return values for a kernel function is supported.
1. Opening multiple contexts with a single `with` statement (e.g. `with context_a, context_b: pass`).
1. It is possible to add typing annotations to function definitions. Typing for variables is not supported since Python 3.5 does not support the syntax. More information on kernel typing can be found on the [Kernel typing page](ARTIQ/Kernel-typing).
......
......