From ba072edb51244314d8ac2520185898ea6c4f38cf Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 7 Dec 2021 17:23:45 +0100 Subject: [PATCH] doc: Document availability of Python brace format strings. * gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace format string. --- gettext-tools/doc/lang-python.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gettext-tools/doc/lang-python.texi b/gettext-tools/doc/lang-python.texi index f299114cc..f2226b734 100644 --- a/gettext-tools/doc/lang-python.texi +++ b/gettext-tools/doc/lang-python.texi @@ -1,5 +1,5 @@ @c This file is part of the GNU gettext manual. -@c Copyright (C) 1995-2020 Free Software Foundation, Inc. +@c Copyright (C) 1995-2021 Free Software Foundation, Inc. @c See the file gettext.texi for copying conditions. @node Python @@ -52,6 +52,7 @@ emulate @item Formatting with positions @code{'...%(ident)d...' % @{ 'ident': value @}} +@*@code{'...@{ident@}...'.format(ident=value)} (see PEP 3101) @item Portability fully portable -- 2.47.2