What is in our namespace?



examples/modules/what_is_in_the_namespace.py
print(dir())
import sys
print(dir())
from sys import argv
print(dir())

['__annotations__', '__builtins__', '__cached__', '__doc__',
      '__file__', '__loader__', '__name__', '__package__', '__spec__']

['__annotations__', '__builtins__', '__cached__', '__doc__',
      '__file__', '__loader__', '__name__', '__package__', '__spec__', 'sys']

['__annotations__', '__builtins__', '__cached__', '__doc__',
      '__file__', '__loader__', '__name__', '__package__', '__spec__', 'argv', 'sys']