We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 034b1c7 commit 4ec466dCopy full SHA for 4ec466d
1 file changed
unpythonic/seq.py
@@ -8,6 +8,7 @@
8
9
from collections import namedtuple
10
from unpythonic.env import env
11
+from unpythonic.misc import call
12
13
# evil inspect dependency, used only to provide informative error messages.
14
from unpythonic.arity import arity_includes, UnknownArity
@@ -137,11 +138,11 @@ def pipe(value0, *bodys):
137
138
x = update(x)
139
return x
140
-class get: # sentinel singleton with a nice repr
141
+@call # make a singleton
142
+class get: # sentinel with a nice repr
143
"""Sentinel; pipe into this to exit a shell-like pipe and return the current value."""
144
def __repr__(self):
145
return "<sentinel for pipe exit>"
-get = get()
146
147
class piped:
148
"""Shell-like piping syntax.
0 commit comments