From: Vivien Maisonneuve Date: Tue, 19 Aug 2014 09:25:05 +0000 (+0200) Subject: Simplify LinExpr.values() X-Git-Tag: 1.0~57 X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/commitdiff_plain/5d2a146f1fa8ff16a9de6f35e74d59031fbcb575?ds=inline Simplify LinExpr.values() --- 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):