Artwork

Indhold leveret af Brian Okken. Alt podcastindhold inklusive episoder, grafik og podcastbeskrivelser uploades og leveres direkte af Brian Okken eller deres podcastplatformspartner. Hvis du mener, at nogen bruger dit ophavsretligt beskyttede værk uden din tilladelse, kan du følge processen beskrevet her https://da.player.fm/legal.
Player FM - Podcast-app
Gå offline med appen Player FM !

222: Import within a Python package

12:02
 
Del
 

Manage episode 438668414 series 2508404
Indhold leveret af Brian Okken. Alt podcastindhold inklusive episoder, grafik og podcastbeskrivelser uploades og leveres direkte af Brian Okken eller deres podcastplatformspartner. Hvis du mener, at nogen bruger dit ophavsretligt beskyttede værk uden din tilladelse, kan du følge processen beskrevet her https://da.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

222 episoder

Artwork

222: Import within a Python package

Test & Code

143 subscribers

published

iconDel
 
Manage episode 438668414 series 2508404
Indhold leveret af Brian Okken. Alt podcastindhold inklusive episoder, grafik og podcastbeskrivelser uploades og leveres direkte af Brian Okken eller deres podcastplatformspartner. Hvis du mener, at nogen bruger dit ophavsretligt beskyttede værk uden din tilladelse, kan du følge processen beskrevet her https://da.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

222 episoder

Alle episoder

×
 
Loading …

Velkommen til 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.

 

Hurtig referencevejledning