[Python-Dev] transitioning from % to {} formatting (original) (raw)

Benjamin Peterson benjamin at python.org
Sun Oct 4 00:38:55 CEST 2009


2009/10/3 Vinay Sajip <vinay_sajip at yahoo.co.uk>:

Raymond Hettinger <python rcn.com> writes:

We should get one written.  ISTM, every %-formatting string is directly translatable to an equivalent {}-formatting string.

I've made a start, but I'm not sure how best to handle the '#' and ' ' conversion flags.

Mine handles it differently for each type specifier.

-- Regards, Benjamin



More information about the Python-Dev mailing list