TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


Forums >


Vertical line in function arguments

Andrej Mitrovic

3/27/2010 7:30:00 PM

There is this peace of code in a 3rd party module:

MidiIn.SetFilter(pypm.FILT_ACTIVE | pypm.FILT_CLOCK |

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?
1 Answer

Andrej Mitrovic

3/27/2010 7:31:00 PM


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