summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/core_fstring_parser.py
blob: 570b92434a9a067d6fc19e2d1d5868888fcd9de0 (plain) (blame)
1
2
3
4
5
6
7
8
9
"""
categories: Core,f-strings
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"}')