diff options
author | Eric Smith <eric@trueblade.com> | 2007-08-29 03:22:59 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-08-29 03:22:59 (GMT) |
commit | 625cbf28eeeed3f2d8afffa6c442f10d58ae6607 (patch) | |
tree | d555d101cd7c3986a0e85cb25eef85b71fe6d10f /Modules/_sqlite/statement.c | |
parent | 9600f93db6038ef6d5a1254295bac61e96fa56a2 (diff) | |
download | cpython-625cbf28eeeed3f2d8afffa6c442f10d58ae6607.zip cpython-625cbf28eeeed3f2d8afffa6c442f10d58ae6607.tar.gz cpython-625cbf28eeeed3f2d8afffa6c442f10d58ae6607.tar.bz2 |
Modified parsing of format strings, so that we always return
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.
Diffstat (limited to 'Modules/_sqlite/statement.c')
0 files changed, 0 insertions, 0 deletions