string interpolation and long integers
dmost at magna.com.au
dmost at magna.com.au
Wed Aug 16 22:35:20 EDT 2000
There doesnt seem to be any support for interpolating long integeers
into strings using the "String" % (params, ...) notation.
%d, %D, %x, %X all seem to render integers fine, but raise exceptions
for long integers. %ld makes no difference either.
You can interpolate long integers with the %s notation, but you get
an 'L' on the end of the number. "%s" % 1L --> "1L"
A quick fix/addition for 1.6 perhaps?
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list