忍者ブログ

Py淡 (PyTan)

Home > ブログ > > [PR] Home > ブログ > Python > "import antigravity" actually works!

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

"import antigravity" actually works!

Wow. I did not expect it to work but I just tried it for fun. And guess what! It actually works!

Fire up your python console and try importing "antigravity". It brings you to that xkcd page http://www.xkcd.com/353/.

The history behind how this made into python by Guido can be found here: http://python-history.blogspot.ch/2010/06/import-antigravity.html




あ゛ーびっくりした。さっきこのブログのサブタイトルに”In the spirit of import antigravity”と追加したので、なんとなく試しにインポートしてみてみたらウェブブラウザが開いてあのページが出てきた。面白いのでみなさんもお試しあれ。

もともとはグーグルアプエンジンのイースターエッグ

これだけではなんなのでちょっとググってみたら、The history of antigravityというブログに記事があって、
But it really originated in Google App Engine! It was a last-minute addition when we launched App Engine on April 7, 2008. A few weeks before launch, when most code was already frozen, the App Engine team at Google decided we wanted an easter egg.

なんて書いてある。つまりもともとは2008の4月7日にGoogleのAppEngineがランチしたときに公開されたGAEのイースターエッグとして追加されたモジュールだったようです。それがPython3にマージされて、Python2系にも降りてきたらしい。

ちなみにこの記事はGuido van Rossum本人の書き込みだった。彼がグーグルにいた時の逸話でしょうか。


PR

Comment0 Comment

Comment Form

  • お名前name
  • タイトルtitle
  • メールアドレスmail address
  • URLurl
  • コメントcomment
  • パスワードpassword