No, this is not string concatenation. _
By itself does not mean anything in Python.
In Python, a function can return more than one value, and you can assign more than one variable in a single expression. Combining these two functions allows you to write code, for example:
def foo(): return 1, 2, 3 a, b, c = foo() print(a)
There is a general convention in languages ββthat support working with multiple values, such as naming _
means that "I really don't care what ends up with this variable." In your example, the call_command
function returns what the command writes to standard output in its first return value, and what the standard error says in the second. Whoever encoded that apparently didn't care about the errors reported by the teams.
The concatenation of the output you mention must occur elsewhere.
source share