Comment by mananaysiempre
2 days ago
It’s still useful in related situations. The following crime often finds its way into my $PYTHONSTARTUP:
class more:
def __ror__(self, other):
import pydoc
pydoc.pager(str(other))
more = more()
and here the low precedence of | is useful.
No comments yet
Contribute on Hacker News ↗