allowed can be configured to allow the slice construct but doesn't distinguish between the 2-parameter and 3-parameter version. This means that [::-1] is allowed even though not taught in M269. Should we distinguish a slice2 and slice3 (or slice-step) construct in the JSON in the same way that a for-else has to be explicitly allowed? Is it worth the hassle?
M269 decided to allow 3rd parameter and so it's not worth the hassle of checking the AST for it. This issue can be reopened when someone wants this feature.
allowed
can be configured to allow the slice construct but doesn't distinguish between the 2-parameter and 3-parameter version. This means that[::-1]
is allowed even though not taught in M269. Should we distinguish aslice2
andslice3
(orslice-step
) construct in the JSON in the same way that afor-else
has to be explicitly allowed? Is it worth the hassle?