little hands' lab

ドメイン駆動設計、アジャイルプラクティスを実践し、解説しています。

Pythonの__init__なんて読むの問題

Pythonの__init__これなんて読むのかと思ってたら、"dunder init"と読むらしいです。

python wikiに書いてあることを抜粋すると、

とあるインターネット上のフォーラム(? リンク切れ)にてMark Jacksonと言う人が以下のように提案したのが発端らしいです。

An awkward thing about programming in Python: there are lots of double underscores. My problem with the double underscore is that it's hard to say. How do you pronounce __init__? "underscore underscore init underscore underscore"? "under under init under under"? Just plain "init" seems to leave out something important. I have a solution: double underscore should be pronounced "dunder". So __init__ is "dunder init dunder", or just "dunder init".

(要約)

みんな__init__ってなんて読む?すごく読みづらいよね… "underscore underscore init underscore underscore"も "under under init under under"も長すぎるし、ただ"init"だと大事な意味が抜けちゃうよね。

そこで"double underscore"を縮めて"dunder"って呼ぶのはどうだろう? __init__はdunder init dunder"、もしくは単に "dunder init"とするのは。

というpostがあり、それが広まったとのことです。

実際これ使われてるの?というところなのですが、私は英語のpython入門の動画教材を見ていてそこで普通に使われていたので、そこそこ普及してるのかもです。