Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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__.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: