Re:WTFPython: Exploring and understanding Python through sur...
by zamadatix on Tuesday May 31, 2022 @02:00AM
(#31566542)
To me the second version seems not only clearer/more direct to follow but also is a few characters shorter anyways.
[ Parent
| on HN ]
Re:WTFPython: Exploring and understanding Python through sur...
by japanuspus on Tuesday May 31, 2022 @02:27AM
(#31566656)
But the second version needs to run `.strip` twice. It might not make much of a difference for `strip` -- but it still hurts my eyes, and could be an actual performance issue for other operations.