summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/core_fstring_parser.py
blob: 22bbc5866ec3a71e6061aa33ff6f7c21efe81ab5 (plain) (blame)
1
2
3
4
5
6
7
8
9
"""
categories: Core
description: f-strings cannot support expressions that require parsing to resolve unbalanced nested braces and brackets
cause: MicroPython is optimised for code space.
workaround: Always use balanced braces and brackets in expressions inside f-strings
"""

print(f'{"hello { world"}')
print(f'{"hello ] world"}')