Author eric.smith
Recipients eric.smith, ezio.melotti, r.david.murray
Date 2014-02-06.00:32:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391646766.84.0.115109498489.issue20524@psf.upfronthosting.co.za>
In-reply-to
Content
That would be a great improvement. It's in Python/formatter_unicode.c, line 245, in parse_internal_render_format_spec().

That code knows about the format spec, but not the type being formatted. That would be easy enough to pass in.

This fix would only work for the built-in types: int, float, and str, I think. Maybe complex. But that's probably good enough.
History
Date User Action Args
2014-02-06 00:32:46eric.smithsetrecipients: + eric.smith, ezio.melotti, r.david.murray
2014-02-06 00:32:46eric.smithsetmessageid: <1391646766.84.0.115109498489.issue20524@psf.upfronthosting.co.za>
2014-02-06 00:32:46eric.smithlinkissue20524 messages
2014-02-06 00:32:46eric.smithcreate