18 Feb
2005
18 Feb
'05
5:12 p.m.
On Feb 18, 2005, at 9:22 AM, Samuel Reynolds wrote:
At 2005-02-17 01:27 PM -0600, you wrote:
btw, is there any difference in python between %u and %d at all?
Nope, I don't think so.
Yes, there is.
%d -- integer (signed) %u -- Unsigned integer
Nope, there isn't, in 2.4 and up. In 2.3 %u does the following:
"%u"%-5 __main__:1: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up '4294967291'
James