ubuiltins: Slice instances are not supported.

This commit is contained in:
Laurens Valk
2022-11-28 11:24:51 +01:00
parent 725b6d672c
commit 25f427d8bf
+5 -4
View File
@@ -936,11 +936,12 @@ class slice:
def __init__(self, *args) -> None:
"""
Returns a slice object representing the set of indices specified by
``range(start, stop, step)``.
slice()
Slice objects are also generated when extended indexing syntax is used.
For example: ``a[start:stop:step]`` or ``a[start:stop, i]``.
Creating instances of this class is not supported.
Use indexing syntax instead. For
example: ``a[start:stop:step]`` or ``a[start:stop, i]``.
"""