Hot take: python is too verbose to have an 80-character line length standard while retaining the semantic readibility it promotes as a feature.
-
-
I just use yapf and let it sort it out itself tbh
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can I ask a few questions? Why not break it into multiple lines for readability? Is there an efficiciency (space, speed) penalty? Is it a Pythonic cultural issue (e.g. always use list comprehensions because they act as a shibboleth)? I run into this same problem.
-
Please don't take this as aggressive (it's aimed at Python not you), how is this one-liner fundamentally different than the much-maligned Perl one-liners?
-
Having spent 15 years doing Perl, the past decade doing modern Fortran and a moderate amount of Python, I'm used to breaking code down into longer, more legible stanzas that fit into 72 columns (yes, even with that restriction lifted by the F90 free-form format spec.)
-
I don't know the state of Perl5 these days and I wouldn't use either Python or Perl for performance-critical code, but modern Fortran usually gets fed through a C/C++ style optimizer downstream so writing terse code for efficiency is a waste since the optimized is smarter than me
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.