What happens when you import a module?

Reuven M. Lerner

Reuven M. Lerner

Teaching Python and data science around the world since 1995. Author of the books "Python Workout" and "Pandas Workout". Publisher of the "Better developers" and "Bamboo Weekly" newsletters. I spend each day trying to help people improve their Python skills.

    摘要

    We all "import" modules . But how does Python find and load modules, and making their definitions available? The answer is surprisingly complex. This talk walks you through the world of module importation, from the differences between "import" and "from .. import" to the load path, to finders and loaders. Even if you've been using Python for many years, you will likely discover quite a lot about what happens behind the `import` statement.

    說明

    地點

    R1

    時間

    第二天 • 05:45-06:30 (UTC)

    語言

    英文演講

    層級

    中階

    分類

    Python 核心