PyCon JP 2024

Unlocking Python's Core Magic
2024-09-28 , 4F Track4

Discover the hidden gems of Python that can significantly improve your coding skills. While fundamental concepts such as dunder methods, decorators, and iterable protocols are well-known to most Python developers, not everyone knows how to apply them. In this presentation, you will learn how these features work and see their application in real-world open-source projects.


This presentation briefly introduces a few of Python's fundamental concepts. The objective of this talk is not to extensively cover the details of these mechanisms but to demonstrate how these concepts can be applied to a real-world open-source project. The following concepts will be covered.

  1. dunder method
  2. __getattr__ and PEP 562
  3. decorators
  4. functool.partial
  5. Iterable Protocol

Why did you choose this topic?:

Even though most Python developers are familiar with these concepts, they may not use them frequently during implementation and might forget about them. By demonstrating how they are used in an open-source project, I want to showcase how they can be applied to real-world use cases and how powerful they can be.

Knowledges and know-how the audience can get from your talk:

How the following Python feature can be applied to real-world use cases

  1. dunder method
  2. __getattr__ and PEP 562
  3. decorators
  4. functool.partial
  5. Iterable Protocol
Prior knowledges speakers assume the audience to have:

Basic understanding of Python and have experience using decorators and dunder methods implemented by others

Audience experiment:

Intermediate

Language of presentation:

English

Language of presentation material:

English

See also: slide deck

Wei Lee is a software engineer and an Apache Airflow committer. He is an open-source ethicist who has contributed actively to Airflow since 2023. In addition to Airflow, he maintains commitizen-tools and has volunteered at PyCon Taiwan since 2019. When he's not working, Wei enjoys exploring the world through travel. Attending PyCon events gives him the perfect opportunity to do so. Wei has already attended PyCon TW 🇹🇼, PyCon US 🇺🇸, PyCon JP 🇯🇵, PyCon CA 🇨🇦, and more PyCons to come.

Personal Website: https://weilee.me
Twitter: @clleew