Issue #25179: Preparatory cleanup of existing docs on string formatting

* Various sections were pointing to the section on the string.Formatter
  class, when the section on the common format string syntax is probably more
  appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
  and this is tested; see Issue #19729 for instance
This commit is contained in:
Martin Panter 2016-02-08 01:34:09 +00:00
parent b6213c5664
commit d5db14794b
9 changed files with 31 additions and 29 deletions

View file

@ -82,7 +82,7 @@ howto/pyporting,,::,Programming Language :: Python :: 2
howto/pyporting,,::,Programming Language :: Python :: 3
howto/regex,,::,
howto/regex,,:foo,(?:foo)
howto/urllib2,,:example,"for example ""joe@password:example.com"""
howto/urllib2,,:password,"for example ""joe:password@example.com"""
library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
library/bisect,32,:hi,all(val >= x for val in a[i:hi])
library/bisect,42,:hi,all(val > x for val in a[i:hi])

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
82 howto/pyporting :: Programming Language :: Python :: 3
83 howto/regex ::
84 howto/regex :foo (?:foo)
85 howto/urllib2 :example :password for example "joe@password:example.com" for example "joe:password@example.com"
86 library/audioop :ipos # factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],
87 library/bisect 32 :hi all(val >= x for val in a[i:hi])
88 library/bisect 42 :hi all(val > x for val in a[i:hi])