The Zen of Python, by Tim Peters

pythonをインストールしたらまずおもむろにimport thisするべし*1


>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
(きたないのよりきれいな方がいい)
Explicit is better than implicit.
(ごちゃごちゃ難しいのより、白黒はっきりしてるのがいい)
Simple is better than complex.
(めんどうなのよりかんたんな方がいい)
Complex is better than complicated.
(けど、訳分かんなくなるくらいならめんどうな方がまし)
Flat is better than nested.
(ネストさせなくていいならしない方がいい)
Sparse is better than dense.
(たくさん詰め込んだのよりスカスカな方がいい)
Readability counts.
(読みやすさがたいせつなのよ)
Special cases aren't special enough to break the rules.
(特別なこともあるけど掟破りってほどじゃない)
Although practicality beats purity.
(実用性を求めてくと、ちょっとはずれちゃうこともあるけどね)
Errors should never pass silently.
(エラーをだまって通すようなことがあっちゃいけません)
Unless explicitly silenced.
(わざとそうしてるんじゃない限り)
In the face of ambiguity, refuse the temptation to guess.
(あいまいなことをてきとーに処理しちゃいけません)
There should be one-- and preferably only one --obvious way to do it.
(間違えよと分かりにくかったりしてもね)
Now is better than never.
(やらないよりは今やるべき)
Although never is often better than *right* now.
(けど今「すぐ」やるならやんない方がいいこともある)
If the implementation is hard to explain, it's a bad idea.
(作るものをうまく説明できないようならそれはボツ)
If the implementation is easy to explain, it may be a good idea.
(うまく説明できたらたぶんそれがグッド)
Namespaces are one honking great idea -- let's do more of those!
(ぶらぼーなアイディア名前空間、やっぱこれですね)