Test & Code

222: Import within a Python package


Listen Later

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?




...more
View all episodesView all episodes
Download on the App Store

Test & CodeBy Brian Okken

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

70 ratings


More shows like Test & Code

View all
Radiolab by WNYC Studios

Radiolab

44,034 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Heavy Networking by Packet Pushers

Heavy Networking

326 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

581 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

213 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,109 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

140 Listeners

Unexplainable by Vox

Unexplainable

2,323 Listeners

Network Automation Nerds by Packet Pushers

Network Automation Nerds

5 Listeners