[Python-ideas] [Python-Dev] User conversions in custom string.Formatter

Andrew Svetlov andrew.svetlov at gmail.com
Wed Mar 16 02:48:26 CET 2011

I can, but .parse() is thin wrapper around _string.formatter_parser,
which is implemented in C
(Objects/stringlib/string_format.h) and is opaque structure from python side.
To override .parse() I should to reimplement the most part of this file.

It's much easier to patch 'parse_field' and 'MarkupIterator_next'
functions than reimplement all existing functionality.

More information about the Python-ideas mailing list