This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients LambertDW, eric.smith, ezio.melotti, mark.dickinson, terry.reedy
Date 2009-02-13.13:30:08
SpamBayes Score 3.0594576e-06
Marked as misclassified No
Message-id <1234531812.86.0.472476687528.issue5237@psf.upfronthosting.co.za>
In-reply-to
Content
The attached file is a mostly working version that inherits from
string.Formatter. It has the following shortcomings, which would all be
addressed if we go forward:

- Doesn't handle escaping '{' or '}'
- Doesn't handle conversion specifiers, like '!s'

These are all a function of me being too lazy to write a complete
parser. If anyone really wants them, I could add them. But this is just
a proof of concept.

Admittedly this isn't a drop-in replacement for ''.format(), but it
should give a taste of what using it would be like.
History
Date User Action Args
2009-02-13 13:30:13eric.smithsetrecipients: + eric.smith, terry.reedy, mark.dickinson, LambertDW, ezio.melotti
2009-02-13 13:30:12eric.smithsetmessageid: <1234531812.86.0.472476687528.issue5237@psf.upfronthosting.co.za>
2009-02-13 13:30:11eric.smithlinkissue5237 messages
2009-02-13 13:30:10eric.smithcreate