>>   >>> i = long(-1972144115) & 0xFFFFFFFF
>
> Ah, thanks.  I've never had a need to to bit manipulation in Python (or in

For anyone interested, my new OS topic has a section on bitwise
operations in Python - they are needed for checking stat flags...
(see the sig for the link)

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld/tutos.htm


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to