string formatting question

Victor Muslin victor at prodigy.net
Fri Jan 5 19:07:21 EST 2001


An integer can be formatted as follows:

	>>> '%d' % 123

How is an infinite precision long integer formatted into a string? If
The above code:

	>>> '%d' % 123123123123123123L

produces an OverflowError exception. Surely there is something simple
I am overlooking in the manual, but none of the other format
specifiers described seemed to be appropriate.

TIA



More information about the Python-list mailing list