micropython/tests/cpydiff/core_fstring_parser.py

10 wiersze
263 B
Python

"""
categories: Core
description: f-strings cannot support expressions that require parsing to resolve nested braces
cause: MicroPython is optimised for code space.
workaround: Only use simple expressions inside f-strings
"""
f'{"hello {} world"}'
f"{repr({})}"