X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/6f888673868879dfd38050bcaedb93c7fd5bac66..5d2a146f1fa8ff16a9de6f35e74d59031fbcb575:/linpy/linexprs.py?ds=inline diff --git a/linpy/linexprs.py b/linpy/linexprs.py index ab5d344..492ea9e 100644 --- a/linpy/linexprs.py +++ b/linpy/linexprs.py @@ -178,8 +178,7 @@ class LinExpr: Iterate over the coefficient values in the expression, and the constant term. """ - for coefficient in self._coefficients.values(): - yield coefficient + yield from self._coefficients.values() yield self._constant def __bool__(self):