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

Raymond Hettinger python at rcn.com
Mon Mar 16 23:24:26 CET 2009

[Guido van Rossum]
> Typically PEPs put the discussion of alternatives in some
> section at the end, after the specification and other stuff relevant
> going forward.

Okay, re-arranged to make it more peppy.

> I guess in the end this means I am in favor of Nick's alternative.

Was hoping you would be more attracted to the other proposal
which more people's needs right out of the box.  No matter
what country you're in, it's nice to have the option to switch
to spaces or underscores regardless of your local convention.

In the end, most respondants seemed to support the more flexible
version (Eric's proposal). 

> One thing I don't understand: the PEP seems to exclude the 'e' and 'g'
> format. I would think that in case 'g' defers to 'f' it should act the
> same, and in case it defers to 'e', well, in the future (under (b)
> above) that could still change the period into a comma, right?

Makes sense.  So noted in the PEP.


More information about the Python-ideas mailing list