On Thu, May 22, 2014 at 10:08 AM, Dario Bertini <berda...@gmail.com> wrote:

> in questo caso però non è l'and logico, ma l'and bitwise
>
> se è questo, ciò che cerchi, l'operatore per l'and bitwise in python è "&"
>
> >>> 42 & 1
> 0
>

Secondo me il punto e' proprio questo. OP si aspettava un and bitwise,
mentre and e' un operatore logico.
E per inciso, visto che la maggior parte delle volte si vuole un and logico
e non bitwise...


-- 
.
..: -enrico-
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a