On 29 October 2010 00:13, Dave Angel <da...@ieee.org> wrote: > From the help: > > "The unary ~ (invert) operator yields the bitwise inversion of its plain or > long integer argument. The bitwise inversion of x is defined as -(x+1). It > only applies to integral numbers" > > Inverting the bits of a floating point number wouldn't make much sense, so > fortunately it gives an error. > > DaveA >
Very cool, Dave. Thanks for looking that up. =] Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list