]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Document availability of Python brace format strings.
authorBruno Haible <bruno@clisp.org>
Tue, 7 Dec 2021 16:23:45 +0000 (17:23 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
* gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace
format string.

gettext-tools/doc/lang-python.texi

index f299114cc43ce1151e4b9eb88281922aae4f0c72..f2226b734f402a23ba706f360f5c80cadbd9e93a 100644 (file)
@@ -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