Should pybricks REPL support f-strings? #1855
Closed
BertLindeman
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Enabling the flag will let us use them on the REPL. Oddly enough, the question is why they work in scripts when this feature is not enabled. I suppose |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I past snippets of my program into the REPL to test things.
I like f-strings as they are (to me) easier to understand than the other formatting syntax.
But in the REPL f-strings are refused in pybricks (at the moment I usie 3.6.0b1)
micropython does support f-strings since 1.12 or 1.13 I think.
The micropython pybricks is based upon micropython 1.20:
('micropython', (1, 20, 0), 'SPIKE Prime Hub with STM32F413VG', 7430)Did not want to make an issue for this, as I do not know if this is / was a design decision.
And this might not be a good moment to make a change for such a minor thing, now.
Bert
Beta Was this translation helpful? Give feedback.
All reactions