• Eric Smith's avatar
    Modified parsing of format strings, so that we always return · 625cbf28
    Eric Smith yazdı
    a tuple (literal, field_name, format_spec, conversion).
    
    literal will always be a string, but might be of zero length.
    field_name will be None if there is no markup text
    format_spec will be a (possibly zero length) string if
      field_name is non-None
    conversion will be a one character string, or None
    
    This makes the Formatter class, and especially it's parse()
    method, easier to understand.
    
    Suggestion was by Jim Jewett, inspired by the "tail" of an
    elementtree node.
    
    Also, fixed a reference leak in fieldnameiter_next.
    625cbf28
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...
PCbuild8 Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
INTBENCH Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README 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...