Re:Beyond PEP 8 – Best practices for beautiful intelligible ...
by bpicolo on Friday August 07, 2015 @06:15PM
(#10025336)
Then use better whitespace rules. Not to mention the helper isn't capturing any closure here so it's not particularly useful inline, and even when they are you can refactor variable capture to new functions. Nested definitions in python are pretty rare, and oft unnecessary
[ Parent
| on HN ]
Re:Beyond PEP 8 – Best practices for beautiful intelligible ...
by JadeNB on Saturday August 08, 2015 @04:36PM
(#10028594)
Surely the fact that there are two typos in your code, one of them in the name of a variable (`this_long_variable` vs `this_long variable`), indicates that things can go wrong when you abstract out a literal to a variable?