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__


~ is a standard operator but it's purpose is bitwise inversion. How did we 
make it become logical negation?
 

>
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: cedric...@b2ck.com <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/73a735e7-89e2-4448-b49c-39752f80d60a%40googlegroups.com.

Reply via email to