Skip to content

cartesian: drop support for field[...] syntax with ellipsis in brackets #2406

@romanc

Description

@romanc

Description

In #2399, we realized that the following is legal gt4py syntax

with computation(PARALLEL), interval(...):
    out_field[...] = 42

Notice the ellipsis in the square brackets [...], which are verbatim and not to abbreviate something. This is redundant with

with computation(PARALLEL), interval(...):
    out_field = 42

To get ride of this redundancy, we thus decided to remove support for out_field[...], especially since it starts to make problems with supporting python >=3.14 and <3.14.

In PR #2399, Rico just removed the problematic test case. This issue is a follow-up to fully remove support from the parser of gt4py.cartesian.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gt4py.cartesianIssues concerning the current version with support only for cartesian grids.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions