6 karma · joined Aug 12, 2018 (8y ago) · 2 submissions
comment 8y ago · link · parent
I was pleasantly surprised by some of the names I came across - Leo Tolstoy, for instance.
comment 8y ago · link · parent
Agreed. Python code tends to be concise as is. There's no need to add little tricks to cut out a line or two at the expense of readability.
Along those lines, in a recent code review a developer balked at some proposed code and boasted how he could do the same thing in fewer lines. His "improved" code had a keyword parameter where the default was set to a lambda function containing nested list comprehensions plus a zip function... I voted against his "improvement" since it was the most unpythonic thing I'd ever seen. I'll take added readability and simplicity at the expense of a few extra lines.