Differences between revisions 6 and 7
Revision 6 as of 2012-03-06 14:24:39
Size: 2105
Editor: nthiery
Comment:
Revision 7 as of 2012-03-06 14:31:03
Size: 2376
Editor: nthiery
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Equality and Coercion could be harmful
======================================
Equality using Coercion considered harmful?
===========================================
Line 6: Line 6:
The goal of this page is to gather all problems due to equality accepting coercion in borderline cases:: Currently, Sage specifies that, upon comparing with ``a==b`` two objects `a` and `b` that do not have the same parent, a coercion is attempted to put them in the same parent. To prepare a discussion on whether that specification is viable in the long run, we are gathering here (borderline?) use cases where this behaviour is harmful.

::
Line 15: Line 17:
But gathered from Python 2.7 documentation:: However Python 2.7 documentation specifies::
Line 56: Line 58:
Sage's current specifications clashes with Python's specifications
------------------------------------------------------------------
An example showing that Sage's specifications clashes with Python's specifications
------------------------================------------------------------------------
Line 74: Line 76:

}}}

EqualityCoercion (last edited 2017-03-13 22:32:31 by hivertwiki)