You can unpack the returned tuple into some dummy variables:
_, keep_this, _ = f()
It should not be _ , just something is not explicitly used.
(Do not use _ as a dummy name in the interactive interpreter, there it is used to store the last result.)
Also, index the returned tuple:
keep_this = f()[1]
Pavel anossov
source share