Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-10-08 13:50:05 (GMT)
committer Marion <marion.zepf@gmail.com>2013-10-08 13:50:05 (GMT)
commitfd45a42ac1a909023e63d4dfa35419fdae5df9f6 (patch)
treeb63fb33ff873575fa28d23d7a60799b182a66691
parentc5160558417e8e2f522afa23ed718fcd059c1ece (diff)
pass the LogoCode instance to any lambda function wrapped in a Primitive
-rw-r--r--TurtleArt/taprimitive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/taprimitive.py b/TurtleArt/taprimitive.py
index 2eb4a90..e5266a1 100644
--- a/TurtleArt/taprimitive.py
+++ b/TurtleArt/taprimitive.py
@@ -540,7 +540,7 @@ class Primitive(object):
def wants_logocode(self):
""" Does this Primitive want to get the LogoCode instance as its
first argument? """
- return self._wants(LogoCode)
+ return (self.func.__name__ == '<lambda>' or self._wants(LogoCode))
def wants_heap(self):
""" Does this Primitive want to get the heap as its first argument? """