treyhunner, 19 days ago @ehmatthes since I readability isn't an issue in this case (IMO) because the function name is the same as the variable name, the main reason I usually hear argued for keeping it is for the sake of ease of debugging. I might add the variable back temporarily when debugging (just as I might unwrap a comprehension into a loop). Though PDB has a "retval" command for this purpose. https://docs.python.org/3/library/pdb.html#pdbcommand-retval
@ehmatthes since I readability isn't an issue in this case (IMO) because the function name is the same as the variable name, the main reason I usually hear argued for keeping it is for the sake of ease of debugging.
I might add the variable back temporarily when debugging (just as I might unwrap a comprehension into a loop). Though PDB has a "retval" command for this purpose. https://docs.python.org/3/library/pdb.html#pdbcommand-retval