From 4f0f41be56dc8d398d142e892430f4d0cff10ce2 Mon Sep 17 00:00:00 2001 From: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com> Date: Wed, 9 Feb 2022 22:21:07 +0100 Subject: [PATCH] [python] Add FStrings support (#155) --- python/port/mpconfigport.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index 9175793b2..7f5fe20e2 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -52,6 +52,9 @@ // Support for async/await/async for/async with #define MICROPY_PY_ASYNC_AWAIT (0) +// Support for literal string interpolation, f-strings (see PEP 498, Python 3.6+) +#define MICROPY_PY_FSTRINGS (1) + // Whether to support bytearray object #define MICROPY_PY_BUILTINS_BYTEARRAY (1)