About 1,770,000 results
Open links in new tab
  1. Namespaces in Python – Real Python

    Apr 14, 2025 · In this tutorial, you'll learn about Python namespaces, the structures that store and organize the symbolic names during the execution of a Python program. You'll learn when …

  2. How do I create a namespace package in Python? - Stack Overflow

    In Python, a namespace package allows you to spread Python code among several projects. This is useful when you want to release related libraries as separate downloads. For example, with …

  3. Namespaces and Scope in Python - GeeksforGeeks

    Feb 9, 2021 · What is namespace: A namespace is a system that has a unique name for each and every object in Python. An object might be a variable or a method. Python itself maintains …

  4. 6. ModulesPython 3.13.3 documentation

    1 day ago · Each module has its own private namespace, which is used as the global namespace by all functions defined in the module. Thus, the author of a module can use global variables in …

  5. Python Namespace and Scope of a Variable (With Examples)

    In this tutorial, you will learn about namespace, mapping from names to objects, and scope of a variable with the help of examples.

  6. Python Namespaces & Variable Scope - bhavaniravi.com

    Aug 4, 2022 · In Python, we don’t have to import certain functions or objects, they seem to be available to us in handy. But how? The namespace containing the built-in names, such as …

  7. Code Structure, Modules, and Namespaces — Programming in Python

    When you import a module, or a symbol from a module, the Python code is compiled to bytecode. The result is a module.pyc file. Then after compiling, all the code in the module is run at the …

  8. Modules, import mechanism, namespaces, scope(s)

    In this chapter we will dive into one of the most important features of python: the import mechanism. We will explain why modules are useful, how to “import” them, and how you can …

  9. Namespaces — Introductory Python - GitHub Pages

    Names that are defined and available in a given namespace are in scope. That is, the scope of an object is where it is available to / from. A module is a set of Python code with functions, …

  10. python - Namespaces with Module Imports - Stack Overflow

    You'll have to import the math module in explicitly whenever you want to use it - that's just how Python works. Also, you should avoid from X import * -style imports, that's bad practice too. …

  11. Some results have been removed
Refresh