PaperCall is shutting down on August 31, 2026. Existing events and submissions will remain available until then. New events can no longer be created.

Pythonにおける関数ってなんだろう?

By yotchang4s (Yoshiaki Shibutani)

Elevator Pitch

Pythonの関数とは何でしょうか?メソッドの違いは何でしょうか?そんな疑問をちょっと深い話を含めてお話しします。

Description

Pythonの関数ってなんだろう?

Pythonには関数があります。一方でメソッドもあります。この違いは何でしょうか?selfを書いたからメソッド?でも関数に見えるし…
そしてそもそも__call__とは?
はてさていったい関数とは何なのでしょうか?その謎をあきらかにすべく我々はPythonの深みへ向かった。

Notes

本セッションについて

トークも資料も日本語です。

リポジトリ

https://github.com/cafebabepy/cafebabepy

登壇経歴

  1. PyCon JP 2017 LT Pythonが動く仕組み(の概要)
  2. JJUG CCC 2017 Fall JVM上で動くPython処理系実装のススメ (https://www.wantedly.com/companies/f-code/post_articles/92729
  3. ScalaMatsuri 2018 もしScala初心者がMonoidを投げ込まれたら (https://2018.scalamatsuri.org/ja/candidates/YoshiakiShibutani_2/
  4. ScalaMatsuri 2018 アンカンファレンス JVM上で動く Python処理系を作ってるよ