sunoonlee / learn-python

exercises, snippets and notes of learning python
0 stars 0 forks source link

learn PEP-8 #3

Open sunoonlee opened 7 years ago

sunoonlee commented 7 years ago
sunoonlee commented 7 years ago

readability

One of Guido's key insights is that code is read much more often than it is written. As PEP 20 says, "Readability counts".

consistency and foolish consistency

A style guide is about consistency. Consistency with this style guide is important. Consistency within a project is more important. Consistency within one module or function is the most important. However, know when to be inconsistent -- sometimes style guide recommendations just aren't applicable.