X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/8b80ed2263c6e0cf7d6589f36eb3338eaeaaa7e3..2a1055d4f4754fa33c53d3f155cc050e4911a2a3:/pypol/geometry.py diff --git a/pypol/geometry.py b/pypol/geometry.py index ea751ae..1dc50eb 100644 --- a/pypol/geometry.py +++ b/pypol/geometry.py @@ -71,6 +71,9 @@ class Coordinates: __getitem__ = coordinate + def values(self): + yield from self._coordinates.values() + def __bool__(self): return any(self._coordinates.values())