79809252

Date: 2025-11-04 18:14:03
Score: 2.5
Natty:
Report link

@J-Earls Prefer the generator function (using yield) over returning a generator expression, since generator expressions are anonymous. E.g. if there's an error, then in the traceback you get matching_keys (name) instead of <genexpr> (no name). Cf are named lambdas Pythonic?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @J-Earls
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: wjandrea