Trac ticket #22029 changes the coercion model such that comparisons of Element instances now behave like in Python 3. This means that comparisons of elements with uncomparable types/parents will raise an error instead of returning some random answer. I believe that this is an important step in making Sage ready for Python 3.

We could have chosen to use Python 2 style comparisons under Python 2 and Python 3 style comparisons under Python 3, but that would inevitably lead to regressions on Python 3. It's best if code behaves as much as possible the same under Python 2 and Python 3.

The change in the code is quite small, but the implications are big, so that's why I wanted to mention it here on sage-devel.


Jeroen.

--
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