Type erasure in Python

Kir Chou

Kir Chou

A code monkey with some experience in Geo service and Search services. This is its 6th year in PyCon TW and 2nd year in PyCon APAC. (Talks: https://note35.github.io/about/talks)

    摘要

    Type erasure, which is commonly used in other statically-typed programming languages such as Java, C++, and Swift, has slightly different definitions and implementations between programming languages. Python is one of the iconic dynamically-typed programming languages which allows to determine the type of variable in runtime; therefore, the Python community focuses on Type Hints (PEP 484) and static type checker (such as mypy and pyre) recently. Since the concept of type erasure is rarely discussed within the community, in this talk, the speaker picks examples in C++, describes the reason why Python needs type erasure and provides one example to illustrate how to apply it to your CPython extension module.

    說明

    影片

    地點

    R1

    時間

    第一天 • 11:25-11:55 (GMT+8)

    語言

    英文演講

    層級

    進階

    分類

    Python 核心