How on Factorial

Xavier Ho contact at xavierho.com
Thu Oct 28 16:26:45 CEST 2010


On 29 October 2010 00:13, Dave Angel <davea at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101029/fd623b50/attachment.html>


More information about the Python-list mailing list