Skip to content

f-string with bool expression and if-expression inside #1099

Description

@mkurnikov

All these fail to parse

f'{True or True}'
f'{1 == 1}'
f'{"0" if True else "1"}'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions