]> CRI, Mines Paris - PSL - linpy.git/blobdiff - pypol/linear.py
Working test suite
[linpy.git] / pypol / linear.py
index 2c71c02d2b01fb74d24ae3cae42185c3449d3b73..845fac3596cc53e870a30004baa26bdb59667f66 100644 (file)
@@ -135,7 +135,7 @@ class Expression:
         return False
 
     def __bool__(self):
-        True
+        return True
 
     def __pos__(self):
         return self
@@ -355,7 +355,7 @@ class Symbol(Expression):
 def symbols(names):
     if isinstance(names, str):
         names = names.replace(',', ' ').split()
-    return (symbol(name) for name in names)
+    return (Symbol(name) for name in names)
 
 
 @_polymorphic_operator