0

What is the difference between module and namespace in python?

i have read some articles which may denotes both namespace and module for

import foo
import bar from foo
import bar from foo as baz

part of a script.

MS.
  • 135
  • 1
  • 9
  • Possible duplicate of [Namespace vs regular package](https://stackoverflow.com/questions/21819649/namespace-vs-regular-package) – Avery Apr 02 '19 at 14:21
  • 3
    [What is a namespace](https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces) and [What is a module](https://docs.python.org/3/tutorial/modules.html#modules) – han solo Apr 02 '19 at 14:22
  • A namespace is a concept whereas a module is an implementation of this concept. – Louis Saglio Apr 02 '19 at 14:30

0 Answers0