Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-02-20 14:38:58 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-02-20 14:38:58 (GMT)
commit99417bcb7641f6e95d9228f32b0d6d3c90636457 (patch)
tree50e9f583fb563b0ea97df7d4c40c4f3667e3f0ad
parenta05b27c5649dd288e89a4ea9b2dd3e8cf3788005 (diff)
raise error on boolean compare of polynomials
-rw-r--r--TurtleArt/tabasics.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py
index 5a158b3..fee1b12 100644
--- a/TurtleArt/tabasics.py
+++ b/TurtleArt/tabasics.py
@@ -1173,6 +1173,8 @@ variable'))
def _prim_less(self, x, y):
""" Compare numbers and strings """
+ if type(x) == list or type(y) == list:
+ raise logoerror("#syntaxerror")
try:
return float(x) < float(y)
except ValueError: