Eric V. Smith added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to