Artwork

Content provided by Brian Okken. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Brian Okken or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

222: Import within a Python package

12:02
 
Share
 

Manage episode 438672999 series 1952312
Content provided by Brian Okken. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Brian Okken or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

In this episode we're talking about importing part of a package into another part of the same package.

We'll look at: `from . import module` and `from .module import something`

and also: `import package` to access the external API from with the package.

Why would we use `import package` if `from . import api` would work fine?


Learn pytest

  continue reading

223 episodes

Artwork

222: Import within a Python package

Test & Code

811 subscribers

published

iconShare
 
Manage episode 438672999 series 1952312
Content provided by Brian Okken. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Brian Okken or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

In this episode we're talking about importing part of a package into another part of the same package.

We'll look at: `from . import module` and `from .module import something`

and also: `import package` to access the external API from with the package.

Why would we use `import package` if `from . import api` would work fine?


Learn pytest

  continue reading

223 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide