News for hackers. Stuff that matters.
Re:Pythonic monotonic by cs702 on Friday August 13, 2021 @09:18AM (#28168473)
Choosing either implementation as "more Pythonic" than the other feels to me like choosing tabs over spaces, or vice versa:

https://www.youtube.com/watch?v=V7PLxL8jIl8

i.e., it's a matter of personal preference -- except that, as gizmo686 points out below, as of Python 3 tabs are now, officially, considered more Pythonic.

Re:Pythonic monotonic by gizmo686 on Friday August 13, 2021 @09:31AM (#28168608)
Re:Pythonic monotonic by philipov on Friday August 13, 2021 @10:08AM (#28169029)
Re:Pythonic monotonic by cs702 on Friday August 13, 2021 @10:36AM (#28169409)
LOL. That cartoon is particularly funny because it is rather insightful about the nature of such disagreements.
Re:Pythonic monotonic by heavenlyblue on Friday August 13, 2021 @11:47AM (#28170449)
My own personal take on this is that I don't care whether it's tabs vs spaces as long as it's consistent. But if you mix both (especially in Python code), then you should be dead by now.

By the way, one of the popular Python packages pyaml uses tabs (consistently though). Not a good example, but still.

Re:Pythonic monotonic by neolog on Friday August 13, 2021 @12:52PM (#28171409)
No. Once you've internalized the idioms of the language, it becomes obvious that TFA's preferred solution is in the Python style and the other is not.