From: Bruno Haible Date: Tue, 7 Dec 2021 16:23:45 +0000 (+0100) Subject: doc: Document availability of Python brace format strings. X-Git-Tag: v0.21.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba072edb51244314d8ac2520185898ea6c4f38cf;p=thirdparty%2Fgettext.git doc: Document availability of Python brace format strings. * gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace format string. --- 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