[Python-bugs-list] [ python-Bugs-487165 ] difficult to find string interpolation
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 26 Dec 2001 12:09:06 -0800
Bugs item #487165, was opened at 2001-11-29 10:48
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487165&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gábor BORGULYA (borgulya)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: difficult to find string interpolation
Initial Comment:
I tried to look up the possibilities how to formulate
expressions like
'Hello %s\n' % name
After a long search I found out that this is "string
interpolation". But searching for the word
'interpolation' resulted only in pages about
interpolation errors.
Finally I found the page:
Python library reference, 2.1.5.2 String Formatting
Operations.
This is what I wanted to see. This page does not
contain the word "interpolation".
I think this part of the documentation should be made
easier to find.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-26 12:09
Message:
Logged In: YES
user_id=3066
Added index entries similar to Skip's, and use the word
"interpolation" in the text, in Doc/lib/libstdtypes.tex
revision 1.81.
Fixed labelling of "%" as "<" in the index generator
(Doc/tools/buildindex.py revision 1.12).
The "final patch" (attached) should also be applied for
Python 2.1.2 and 2.2.1 as well.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2001-11-30 08:30
Message:
Logged In: YES
user_id=44345
I just tried adding the following extra index entries to
the string formatting section in libstdtypes.tex:
\index{\% formatting}
\index{string interpolation}
\index{string!interpolation}
\index{interpolation, string}
All but the first one worked. The first sort of worked,
but the "% formatting" entry came up in the index under
the character "<" for some reason. Perhaps Fred knows
how to work around that problem.
Skip
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487165&group_id=5470