aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/string_format.md
blob: fa3361750e8eceae4d8a121fd512b544465c36ed (plain)
1
2
3
4
5
6
7
8
9
10
## Unified message(), str.format() and f-string formatting

They now all support the same set of values: strings, integers, bools, options,
dictionaries and lists thereof.

- Feature options (i.e. enabled, disabled, auto) were not previously supported
  by any of those functions.
- Lists and dictionaries were not previously supported by f-string.
- str.format() allowed any type and often resulted in printing the internal
  representation which is now deprecated.