From cec3edc08a6cd6a89761c49292ba6a3bace8b3c1 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 30 May 2023 09:27:42 -0400 Subject: Unify message(), format() and fstring formatting Share a common function to convert objects to display strings for consistency. While at it, also add support for formatting user options. --- docs/yaml/elementary/str.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/yaml/elementary') diff --git a/docs/yaml/elementary/str.yml b/docs/yaml/elementary/str.yml index 7748121..83ab3dd 100644 --- a/docs/yaml/elementary/str.yml +++ b/docs/yaml/elementary/str.yml @@ -14,6 +14,10 @@ methods: See [the Meson syntax entry](Syntax.md#string-formatting) for more information. + + *Since 1.3.0* values other than strings, integers, bools, options, + dictionaries and lists thereof are deprecated. They were previously printing + the internal representation of the raw Python object. example: | ```meson template = 'string: @0@, number: @1@, bool: @2@' -- cgit v1.1