Hi,

On Sun, Dec 18, 2016 at 10:58:26AM +0100, Marc Mezzarobba wrote:
[...]
> In other words: the choice has been made, long ago, to have ==/!= in 
> Sage stand for "semantic" comparison of mathematical objects rather than 
> "syntactic" comparison of data structures. I don't think it was the 
> right choice, but as long as we stick to it, it seems to me that 
> comparisons that don't have a well-defined mathematical result should 
> fail whenever practical, and return False (under the above asymmetric 
> interpretation) if they really need to return a boolean result.

Note that this is also Python (2 and 3) choice:

>>> a = 1
>>> b = 1.
>>> type(a)
<class 'int'>
>>> type(b)
<class 'float'>
>>> a == b
True

Ciao,
Thirry

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to