On 10/17/07, Ted Kosan <[EMAIL PROTECTED]> wrote: > So if simple attribute access is okay to do in Python, why are _right > and _left private?
Equations are immutable, so you should *not* be changing the internal state of equations. Actually _left and _right aren't private, they are just "you should not mess with them", by convention. If they were private they would be __left and __right. In fact, they should be changed to be private. So you like the suggestion to do b.change_right(...) and b.change_left(...) each of which returns a new equation? Bobby and I don't really like sage: a.rhs.expand() since it's a hackish abuse of notation and it is confusing to read. It's clever though (which is not good). William -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---