format a number for output

abcd codecraig at gmail.com
Mon Aug 7 10:55:11 EDT 2006


if i have a number, say the size of a file, is there an easy way to
output it so that it includes commas?

for example:

1890284

would be:

1,890,284

I am looking for something builtin to python, not a third party lib.

thanks




More information about the Python-list mailing list