Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format affected rows and query time according to locale for better readability #19

Closed
andialbrecht opened this issue Mar 18, 2016 · 0 comments
Milestone

Comments

@andialbrecht
Copy link
Owner

The number of affected rows and the execution time should be formatted according to the current locale to improve readability. Esp. thousands separators for the number of affected rows is useful when the query returns a lots of rows.

To get started:

>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'en_US')
'en_US'
>>> locale.format("%d", 1255000, grouping=True)
'1,255,000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant