Loading video player…

Navigating Namespaces and Scope in Python (Overview)

In a program of any complexity, you’ll create hundreds or thousands of names, each pointing to a specific object. How does Python keep track of all these names so that they don’t interfere with one another? This course covers Python namespaces, the structures used to organize the symbolic names assigned to objects in a Python program.

In this course, you’ll learn:

  • How Python organizes symbolic names and objects in namespaces
  • When Python creates a new namespace
  • How namespaces are implemented
  • How variable scope determines symbolic name visibility
  • What is the LEGB rule
Download

Sample Code (.zip)

2.0 KB
Download

Course Slides (.pdf)

414.4 KB

Become a Member to join the conversation.