Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #17693, comment 43, 63: extend/rewrite non-commutativity note
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Sep 29, 2015
1 parent bea925c commit 4e73b45
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/sage/data_structures/mutable_poset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2708,10 +2708,9 @@ def union_update(self, *other):
.. NOTE::
The key of an element is used for comparison. Thus elements with
the same key are considered as equal.
Due to keys and a ``merge`` function (see :class:`MutablePoset`)
this operation might not be commutative.
the same key are considered as equal;
``A.union_update(B)`` and ``B.union_update(A)`` might
result in different posets.
.. TODO::
Expand Down Expand Up @@ -2934,7 +2933,9 @@ def intersection_update(self, *other):
.. NOTE::
The key of an element is used for comparison. Thus elements with
the same key are considered as equal.
the same key are considered as equal;
``A.union_update(B)`` and ``B.union_update(A)`` might
result in different posets.
EXAMPLES::
Expand Down Expand Up @@ -2977,9 +2978,8 @@ def symmetric_difference(self, other):
.. NOTE::
If this poset uses a ``key``-function, then all
comparisons are performed on the keys of the elements (and
not on the elements themselves).
The key of an element is used for comparison. Thus elements with
the same key are considered as equal.
EXAMPLES::
Expand Down Expand Up @@ -3021,9 +3021,10 @@ def symmetric_difference_update(self, other):
.. NOTE::
If this poset uses a ``key``-function, then all
comparisons are performed on the keys of the elements (and
not on the elements themselves).
The key of an element is used for comparison. Thus elements with
the same key are considered as equal;
``A.union_update(B)`` and ``B.union_update(A)`` might
result in different posets.
EXAMPLES::
Expand Down

0 comments on commit 4e73b45

Please sign in to comment.