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.

    Abstract

    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.

    Description

    Location

    R1

    Date

    Day 2 • 05:45-06:30 (UTC)

    Language

    English talk

    Level

    Intermediate

    Category

    Python Core