LoginSignup
92
35

More than 5 years have passed since last update.

Pythonの__init__なんて読むの問題

Last updated at Posted at 2018-01-19

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入門の動画教材を見ていてそこで普通に使われていたので、そこそこ普及してるのかもです。

92
35
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
92
35