On 11 Jun., 01:36, Ronan Lamy <ronan.l...@gmail.com> wrote:
> No, it doesn't:>>> 42 or '6*9'
> 42
> >>> 0 or '6*9'
>
> '6*9'

Sorry, I confused it with something else. BTW, Python has some fancy
syntax (shamelessly taken from the LWN discussion):

>>> x = set()
>>> y = {'not':'empty'}
>>> z = ['also', 'not', 'empty']
>>> x and y
set([])
>>> y and x
set([])
>>> x or y
{'not': 'empty'}
>>> y or x
{'not': 'empty'}
>>> y and z
['also', 'not', 'empty']
>>> z and y
{'not': 'empty'}

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to