Snippet: bitcount()

Klaus Alexander Seistrup kas at maps.magnetic-ink.dk
Sat Jul 17 05:26:19 EDT 1999


A few minutes ago I wrote:

> the method fails for signed ints, like e.g. 0x8000000

Erratum: should of course read "the methods fails for unsigned ints, like
e.g. 0x80000000, because python perceives them as signed ints (use longs
instead)"...


  //Klaus

-- 
···[ Magnetic Ink ]·················································· ><> ···
···[ http://www.magnetic-ink.dk/ ]···········································




More information about the Python-list mailing list