Skip to content
Update Python subset for kernels authored by Leon Riesebos's avatar Leon Riesebos
...@@ -7,7 +7,7 @@ The kernel code supports a subset of the *Python 3.5* language. This section hig ...@@ -7,7 +7,7 @@ The kernel code supports a subset of the *Python 3.5* language. This section hig
**Not supported** **Not supported**
1. The Python MRO is not available and therefore `super()` is not supported. Calls to parent functions are still possible by explicitly calling `ParentClass.parent_function(self)`. 1. The Python MRO is not available and therefore `super()` is not supported. Calls to parent functions are still possible by explicitly calling `ParentClass.parent_function(self)`.
1. Usage of `@property` for variables used in kernels is not supported, except when they are kernel invariant. 1. Usage of `@property` for variables used in kernels is not supported, except when they are kernel invariant or have a setter.
1. It is not possible to use the `__call__()` function of an object in a kernel. 1. It is not possible to use the `__call__()` function of an object in a kernel.
1. Build-in Python functions `isinstance()` and `zip()` are not supported in kernels. 1. Build-in Python functions `isinstance()` and `zip()` are not supported in kernels.
1. Hashing types, such as `dict()` and `set()` are not supported in kernels. 1. Hashing types, such as `dict()` and `set()` are not supported in kernels.
... ...
......