• Eric Smith's avatar
    Merged revisions 70364 via svnmerge from · 8ec90443
    Eric Smith yazdı
    svn+ssh://pythondev@svn.python.org/python/trunk
    
    ........
      r70364 | eric.smith | 2009-03-14 07:57:26 -0400 (Sat, 14 Mar 2009) | 17 lines
    
      Issue 5237, Allow auto-numbered replacement fields in str.format() strings.
    
      For simple uses for str.format(), this makes the typing easier. Hopfully this
      will help in the adoption of str.format().
    
      For example:
      'The {} is {}'.format('sky', 'blue')
    
      You can mix and matcth auto-numbering and named replacement fields:
      'The {} is {color}'.format('sky', color='blue')
    
      But you can't mix and match auto-numbering and specified numbering:
      'The {0} is {}'.format('sky', 'blue')
      ValueError: cannot switch from manual field specification to automatic field numbering
    
      Will port to 3.1.
    ........
    8ec90443
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
RELNOTES Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
runtests.sh Loading commit data...
setup.py Loading commit data...