From: Andrej Mitrovic on
There is this peace of code in a 3rd party module:

MidiIn.SetFilter(pypm.FILT_ACTIVE | pypm.FILT_CLOCK |
pypm.FILT_PITCHBEND |
pypm.FILT_NOTE)

What are the vertical lines in a function call such as this? This
actually calls a function from a Pyrex module that was compiled into
a .pyd. Those filters are hex constants, but I've no idea what these
vertical lines mean. Is this some form of binary "or" operation?
From: Andrej Mitrovic on
Well I hate it when this happens. I ask a question, and literally 2
seconds later I bump into the answer.

This explains it a bit: http://docs.python.org/library/stdtypes.html#bit-string-operations-on-integer-types