If I have a function like the following:
def foo():
return 1, 2
I would normally call the function like:
g, f = foo()
But if I never plan on using the second value returned, is there a way of calling the function that makes that clear, so in the future I won’t get distracted by a place-filler variable?
For example, something like:
g, not_used = foo()
Seems like there’s probably a standard way to do this that is out there.
You could get the first item directly:
I think pylint recommends
_ordummy: