Skip to content

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

@mkurnikov

Description

@mkurnikov

All these fail to parse

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

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