
# Python's module system

# A python file can be used as a module and creates
# a namespace.  A namespace is a name for a set of
# names

import bar
from bar import name
# from bar import *  # BAD!!!!

if __name__ == "__main__":
    bar.f()
    print(bar.name)
    print(name)
9fa9fe51ff62eafb9ad8651ea0763e7991eeb7ef
<mask token>

<mask token>
if __name__ == '__main__':
    bar.f()
    print(bar.name)
    print(name)

import bar
from bar import name
if __name__ == '__main__':
    bar.f()
    print(bar.name)
    print(name)


# Python's module system

# A python file can be used as a module and creates
# a namespace.  A namespace is a name for a set of
# names

import bar
from bar import name
# from bar import *  # BAD!!!!

if __name__ == "__main__":
    bar.f()
    print(bar.name)
    print(name)