mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
In Python 3 ellipsis can appear anywhere, not only in sequence slicings. The parser now always passes ellipsis, it's incorrect use is detected at the unsupported features annotator or compatibility inspection levels.
6 lines
88 B
Python
6 lines
88 B
Python
import numpy
|
|
|
|
x = numpy.zeros((3, 4, 5))
|
|
y = x[..., 0] # pass
|
|
y = x[..., 0, :] # pass
|