preferred format for mapcalc strings in python addons? #1958
-
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.
Replies: 2 comments 4 replies
-
AFAIK, |
Beta Was this translation helpful? Give feedback.
-
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.
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.