PyCon JP 2025 座長の日報 ホームに戻る

Pythonの禅

2025年10月10日

PyCon JP 2025 座長 @nishimotz が個人として公開する日報です。

English version

PyCon JP 2025 は9月26日〜28日に広島国際会議場で開催されました。皆様のご参加、ご支援に感謝します。

Pythonの禅とは

開催準備の意思決定やチーム運営にあたって、私はしばしば「Pythonの禅(The Zen of Python)」に立ち返っていました。これは Python の設計思想を簡潔に表したアフォリズム集で、python -m this で表示でき、公式ドキュメントにも引用されています。

この記事では、そのエッセンスをイベント運営にどう活かすかという観点で整理します。

The Zen of Python(原文 / Tim Peters)

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. Although that way may not be obvious at first unless you’re Dutch. 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!

運営にどう効くか

美は醜よりもよい(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)

ただし最初は明白でないかもしれない(Although that way may not be obvious at first unless you’re Dutch)

今は決してやらないよりよい(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!)

おわりに

The Zen of Python は、ソフトウェア開発に限らない「Pythonコミュニティらしさ」のための知恵ではないか、と気づいたのは、私が座長をやって学んだことのひとつでした。

参考:The Zen of Python(import this、または Python 公式ドキュメントを参照)

更新履歴