[Python-ideas] Rough draft: Proposed format specifier for a thousands separator (discussion moved from python-dev)

Stephen J. Turnbull stephen at xemacs.org
Thu Mar 12 10:18:28 CET 2009

Raymond Hettinger writes:

 > Thanks for the informative comment.  It looks like your needs are
 > best met by Proposal II where those would be written as:
 >    en_num = format(x, "12T, 2f")
 >    fr_num = format(x, "12T.,2f")
 >    or_num = format(x, "12T ,2f")

That is way unreadable to me, especially the difference between en_num
and or_num.  Also, I wonder if

    en_num = format(x, "12T,.2f")

isn't more explicit.

More information about the Python-ideas mailing list