Skip to content

Commit a5a7c3c

Browse files
committed
islazy: improve docstring
1 parent 9a86889 commit a5a7c3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

unpythonic/lazyutil.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ def mark_lazy(f):
3636
return f
3737

3838
def islazy(f):
39-
"""Internal. Return whether the function f is marked as lazy."""
39+
"""Internal. Return whether the function f is marked as lazy.
40+
41+
When a function is marked as lazy, its arguments won't be forced by
42+
``lazycall``. This is the only effect the mark has.
43+
"""
4044
# special-case "_let" for lazify/curry combo when let[] expressions are present
4145
return hasattr(f, "_lazy") or (hasattr(f, "__name__") and f.__name__ == "_let")
4246

0 commit comments

Comments
 (0)