About 50 results
Open links in new tab
  1. What's the difference between a module and package in Python?

    Module: A module is a simple Python file with a (.py) extension that contains collections of functions and global variables. It is an executable file, and the notion of Package in Python is used to arrange all of …

  2. python - How to list all functions in a module? - Stack Overflow

    For this reason it may not be useful to list them with the public ones (this is how Python knows what to get when using from module import *). __all__ could be used to solve this problem, it returns a list of …

  3. Whats the difference between a module and a library in Python?

    Oct 5, 2013 · Packages are a way of structuring Python’s module namespace by using “dotted module names”. If you read the documentation for the import statement gives more details, for example: …

  4. python - How to import a module from a different folder ... - Stack ...

    36 Unfortunately, Python will only find your file if your file is in the systems path. But fear not! There is a way around this! Using python's sys module, we can add a directory to the path while Python is …

  5. import - How to find out what methods, properties, etc a python …

    Lets say I import a module. In order for me to make the best use of it, I would like to know what properties, methods, etc. that I can use. Is there a way to find that out? As an example: Determin...

  6. python - What is the purpose of the -m switch? - Stack Overflow

    In Python 2.4, a module located using -m is executed just as if its filename had been provided on the command line. With -m more is possible, like working with modules which are part of a package, etc.

  7. How to write a Python module/package? - Stack Overflow

    Apr 1, 2013 · Make a python module install-able with "pip install ..." Here is an absolute minimal example, showing the basic steps of preparing and uploading your package to PyPI using setuptools …

  8. Can't import my own modules in Python - Stack Overflow

    I ran "pip install -e . " to install myapp, but when trying to run TestCase in visual studio code I still get "ImportError: No module named myapp". but if I run "python" and then in python run "from myapp …

  9. python - Why do I get a "ModuleNotFoundError" in VS Code despite …

    Jun 19, 2019 · After installing a new module via pip, if VS Code doesn't recognize it, then reloading VS Code may work. Make sure the module is installed inside the virtual environment by creating and …

  10. syntax - What does __all__ mean in Python? - Stack Overflow

    Sep 4, 2008 · from module import * # imports foo and Bar Documentation tools Documentation and code autocompletion tools may (in fact, should) also inspect the __all__ to determine what names to show …