diff --git a/src/sage/sets/family.py b/src/sage/sets/family.py index 2013349553f..0330d415656 100644 --- a/src/sage/sets/family.py +++ b/src/sage/sets/family.py @@ -462,6 +462,12 @@ def items(self): A key can only appear once, but if the function is not injective, values may appear multiple times. + + EXAMPLES:: + + sage: f = Family([-2, -1, 0, 1, 2], abs) + sage: list(f.items()) + [(-2, 2), (-1, 1), (0, 0), (1, 1), (2, 2)] """ return zip(self.keys(), self.values())