diff options
author | Marion <marion.zepf@gmail.com> | 2013-10-08 13:50:05 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-10-08 13:50:05 (GMT) |
commit | fd45a42ac1a909023e63d4dfa35419fdae5df9f6 (patch) | |
tree | b63fb33ff873575fa28d23d7a60799b182a66691 | |
parent | c5160558417e8e2f522afa23ed718fcd059c1ece (diff) |
pass the LogoCode instance to any lambda function wrapped in a Primitive
-rw-r--r-- | TurtleArt/taprimitive.py | 2 |
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? """ |