Home > Articles > Programming > Python

Deitel Presents How Keyword Import Affects Namespaces in Python Programming

  • Print
  • + Share This
This DEITEL™ article discusses how the various forms of the import statement affect a program's namespace. We explore all the forms of the statement and use function dir in interactive sessions to demonstrate the import statement's effects on the namespace.
Like this article? We recommend

Like this article? We recommend

This article from Deitel™ discusses how the various forms of the import statement affect a program's namespace. We explore all the forms of the statement and use function dir in interactive sessions to demonstrate the import statement's effects on the namespace. Readers should be familiar with defining functions, importing modules, basic scoping and namespaces and function dir. The code examples included in this article show readers examples using the Deitel™ signature Live-Code Approach, which presents all concepts in the context of complete working programs followed by the screen shots of the actual inputs and outputs.

View the entire article in PDF format.

  • + Share This
  • 🔖 Save To Your Account