Hacker News new | ask | show | jobs
by kristjansson 612 days ago
Like all of python, `a | b` operator is just `a.__or__(b)`. If you want that operator to do something different in a different context, just override __or__.