[Twisted-web] pgasync (was: /freeform_post!!random causes exceptions)

James Y Knight foom at fuhm.net
Fri Feb 18 10:12:03 MST 2005


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




More information about the Twisted-web mailing list