X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/b02f9551644488e5943f968ac847fe4ed7690d6b..b90f09da753f9c6b865d866bc4ef9097f1b763ac:/linpy/linexprs.py?ds=sidebyside diff --git a/linpy/linexprs.py b/linpy/linexprs.py index b2cec53..99ad4ec 100644 --- a/linpy/linexprs.py +++ b/linpy/linexprs.py @@ -122,7 +122,7 @@ class LinExpr: """ if not isinstance(symbol, Symbol): raise TypeError('symbol must be a Symbol instance') - return self._coefficients.get(symbol, 0) + return self._coefficients.get(symbol, Fraction(0)) __getitem__ = coefficient