From 7029b3d2027b33273b3c73bbf7b6ed18930fcbb3 Mon Sep 17 00:00:00 2001
From: Marco Biasini <mvbiasini@gmail.com>
Date: Sat, 11 Aug 2012 11:43:13 +0200
Subject: [PATCH] added __div__ to BinaryColExpr

---
 modules/base/pymod/table.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/base/pymod/table.py b/modules/base/pymod/table.py
index dae603fb6..40fc98b46 100644
--- a/modules/base/pymod/table.py
+++ b/modules/base/pymod/table.py
@@ -90,6 +90,9 @@ class BinaryColExpr:
   def __mul__(self, rhs):
     return BinaryColExpr(operator.mul, self, rhs)
 
+  def __div__(self, rhs):
+    return BinaryColExpr(operator.div, self, rhs)
+
 class TableCol:
   def __init__(self, table, col):
     self._table=table
@@ -119,6 +122,7 @@ class TableCol:
 
   def __mul__(self, rhs):
     return BinaryColExpr(operator.mul, self, rhs)
+
   def __div__(self, rhs):
     return BinaryColExpr(operator.div, self, rhs)
 
-- 
GitLab