by divbzero · 1y ago · 0 comments
x = Model.objects.all() | by_pk | call(dict.values) | to_list | get('name') | _map(str.title) | log_debug | to_jsonIn practice, rshift gives a lot more flexibility! And you’d rarely chain after a numeric value.
class more:
def __ror__(self, other):
import pydoc
pydoc.pager(str(other))
more = more()
and here the low precedence of | is useful.