Namespace
say it: “NAYM-spays” /ˈneɪmˌspeɪs/
A set of names kept separate so they do not clash.
What is a namespace?
A namespace is a set of names that keeps them from bumping into each other. Two modules can both have a total, because each lives in its own namespace.
import math
pi = 3.14 # your own pi, in your file's namespace
print(pi) # 3.14
print(math.pi) # 3.141592653589793: math's own pi, no clash
Level: Journeyman · More Python terms at this level
Updated