preferred format for mapcalc strings in python addons? #1958
Answered
by
petrasovaa
CarlosGrohmann
asked this question in
Q&A
-
Hi, is there a preferred way to make mapcalc strings in python addons? Is it ok to use f-strings? what is better, this: or this? |
Beta Was this translation helpful? Give feedback.
Answered by
petrasovaa
Oct 28, 2021
Replies: 2 comments 4 replies
-
AFAIK, |
Beta Was this translation helpful? Give feedback.
2 replies
-
The f-strings iare preferable, it's more modern syntax. There are some issues for using it with translatable strings, but that's not the case here. I think the format was preferable comparing to the old % syntax. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CarlosGrohmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The f-strings iare preferable, it's more modern syntax. There are some issues for using it with translatable strings, but that's not the case here. I think the format was preferable comparing to the old % syntax.