treyhunner,
@treyhunner@mastodon.social avatar

@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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • normalnudes
  • everett
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • khanakhh
  • vwfavf
  • rosin
  • mdbf
  • provamag3
  • Leos
  • Durango
  • tacticalgear
  • InstantRegret
  • cubers
  • osvaldo12
  • ngwrru68w68
  • anitta
  • tester
  • modclub
  • cisconetworking
  • megavids
  • JUstTest
  • All magazines