>
>
> On Friday, July 22, 2016 at 9:25:09 AM UTC+2, Cédric Krier wrote:
>
> On 2016-07-21 12:40, Marko Randjelovic wrote:
> > Of course, but in examples I have neither ~ nor Not is imported from
> > trytond.pyson. How Python knows about new character of '~'? Also,
> how is
> > achieved possible to use ~ as an operator (there are no parenthesis)?
>
> '~' is a standard python operator so it does not need to be imported.
> See
>
https://docs.python.org/2/library/operator.html#operator.__invert__
> <
https://docs.python.org/2/library/operator.html#operator.__invert__>
>
>
> ~ is a standard operator but it's purpose is bitwise inversion. How did
> we make it become logical negation?