Grant Edwards
3/2/2008 4:12:00 AM
On 2008-03-01, Stef Mientki <stef.mientki@gmail.com> wrote:
> from the manual I read that a bitwise inversion should be done
> by invert. But from some experiments I see that not works
> equally well.
What experiments are those?
>>> print ~0xaa, not 0xaa
-171 False
>>> print ~0x55, not 0x55
-86 False
>>>
>>> print ~True, not True
-2 False
>>>
> Is this coincidence ?
Is what coincidence?
> (The disadvantage of invert is that I've to import operators)
No you don't.
--
Grant Edwards grante Yow! If elected, Zippy
at pledges to each and every
visi.com American a 55-year-old
houseboy...