hg wrote:
> Dan Bishop wrote:

>> def unsigned(n):
>>     return n & 0xFFFFFFFF
> 
> or abs(-1) ?

Nah! Bitwise operators are cool. ;)

Though ANDing won't make the int unsigned.

Regards,


Björn

-- 
BOFH excuse #23:

improperly oriented keyboard

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to