Skip to content

Commit 7571bbb

Browse files
author
Sylvain MARIE
committed
Added __repr__ to LambdaFunction. Fixes #14
1 parent 9e6f9b9 commit 7571bbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mini_lambda/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def as_expression(self):
7979
def __str__(self):
8080
return self.expression._str_expr
8181

82+
def __repr__(self):
83+
return "<LambdaFunction: %s>" % str(self)
84+
8285
def as_function(self):
8386
"""
8487
freezes this expression so that it can be called directly, in other words that calling it actually calls

0 commit comments

Comments
 (0)