Skip to content

List comprehension bug or limitation #136

@araichev

Description

@araichev

Hi there,

There seems to be a limitation in RapydScript list comprehensions, as witnessed by the following error.

>>> [i*j for i in range(2) for j in range(3)]
1:23: Unexpected token keyword «for», expected keyword «if»

I expected the list [0, 0, 0, 0, 1, 2].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions