I see a "pipe" character (|) used in a function call:
res = c1.create(go, come, swim, "", startTime, endTime, "OK", ax|bx)
What is the meaning of the pipe in ax|bx?
Yep, all answers above are correct.
Although you could find more exotic use cases for "|", if it is an overloaded operator used by a class, for example,
https://github.com/twitter/pycascading/wiki#pycascading
input = flow.source(Hfs(TextLine(), 'input_file.txt'))
output = flow.sink(Hfs(TextDelimited(), 'output_folder'))
input | map_replace(split_words, 'word') | group_by('word', native.count()) | output
In this specific use case pipe "|" operator can be better thought as a unix pipe operator. But I agree, bit-wise operator and union set operator are much more common use cases for "|" in Python.
It is a bitwise-or.
The documentation for all operators in Python can be found in the Index - Symbols page of the Python documentation.
In Python 3.9, the pipe was enhanced to merge (union) dictionaries.
>>> d = {'spam': 1, 'eggs': 2, 'cheese': 3}
>>> e = {'cheese': 'cheddar', 'aardvark': 'Ethel'}
>>> d | e
{'spam': 1, 'eggs': 2, 'cheese': 'cheddar', 'aardvark': 'Ethel'}
>>> e | d
{'cheese': 3, 'aardvark': 'Ethel', 'spam': 1, 'eggs': 2}