We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4040ca commit cbf907cCopy full SHA for cbf907c
docs/usage.md
@@ -175,7 +175,12 @@ expr = Get({'a': 1}, s) # OK
175
expr = 'hello'[0:i] # fails
176
expr = Get('hello', Slice(0, i)) # OK
177
# representing: Repr/Str/Bytes/Sizeof/Hash
178
+# -- by default repr show the to_string()
179
+assert repr(l) == '<_LambdaExpression: l>'
180
+# -- but you can disable it
181
+l.repr_on = False
182
expr = repr(l) # fails
183
+# -- in both cases, if you need repr in the expression, use
184
expr = Repr(l) # OK
185
# formatting with the variable in the args
186
expr = '{} {}'.format(s, s) # fails
0 commit comments