Suggestion for fixing %(foo)s (Re: [Python-Dev] PEP 292-related: why string substitution is not the same operation as data formatting)
Greg Ewing
greg@cosc.canterbury.ac.nz
Mon, 15 Jul 2002 12:48:44 +1200 (NZST)
Guido:
> Somebody else:
> > Guido, can you please, for our enlightenment, tell us what are the
> > reasons you feel %(foo)s was a mistake?
>
> Because of the trailing 's'. It's very easy to leave it out by
> mistake
How about introducing a new format
%{foo}
which is defined to be the same as %(foo)s.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+