Vertical line in function arguments

A

Andrej Mitrovic

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top