3 ms·
>it's hard to find examples of good style of Python programming I've never really bought that this matters so much as long as you just write sensibly in genera
by jimmaswell 10y ago
>it's hard to find examples of good style of Python programming
I've never really bought that this matters so much as long as you just write sensibly in general. How many python users really make sure to do everything a "pythonic" way?
- richard_shelton 10y agoI think, it depends on how you use Python. 1. "Executable pseudocode", almost a toy language to explain few algorithms in your article. 2. Sysadmin tool. Replacement for shell, a way to write quick throwaway scripts. 3. "A modern Lisp". Universal language for implementing AI algorithms, DSLs etc. I, personally, use 3rd variant. I write quite big programs in Python, for example I made few compilers in it. That's why code quality is important for me here.
- noobiemcfoob 10y agoI would posit there are far more methods than these besides. Python is a powerful language that is flexible enough to be used for all these and more. You or anyone will inevitably write code they believe to be best suited to their problem, pythonic or not, weighted by the coder's ability and personal definition of "pythonic"