diff options
author | Walter 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) |
commit | 99417bcb7641f6e95d9228f32b0d6d3c90636457 (patch) | |
tree | 50e9f583fb563b0ea97df7d4c40c4f3667e3f0ad /TurtleArt/tabasics.py | |
parent | a05b27c5649dd288e89a4ea9b2dd3e8cf3788005 (diff) |
raise error on boolean compare of polynomials
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 2 |
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: |