Issue 2526, float.__format__ 'n' specifier does not support thousands grouping.

Implemented grouping, with tests.
Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
2 files changed