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?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to