About 8,140,000 results
Open links in new tab
  1. python - How to list all functions in a module? - Stack Overflow

    I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it. I want to call the help function on each one. In …

  2. 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 …

  3. How do I check the versions of Python modules? - Stack Overflow

    I installed the Python modules construct and statlib using setuptools: sudo apt-get install python-setuptools sudo easy_install statlib sudo easy_install construct How do I check their versions f...

  4. How can I get a list of all classes within current module in Python?

    If I import classes in this module at the module level (i.e., from optparse import OptionParser) those modules are included in the print list. How might I avoid that?

  5. 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 …

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

    Apr 1, 2013 · Python 3 - UPDATED 18th November 2015 Found the accepted answer useful, yet wished to expand on several points for the benefit of others based on my own experiences. …

  7. How do I unload (reload) a Python module? - Stack Overflow

    Jan 13, 2009 · To quote from the docs: Python module’s code is recompiled and the module-level code re-executed, defining a new set of objects which are bound to names in the module’s …

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

    That file is what makes the directory an actual Python package. For example, say you have the following files in a package: package ├── __init__.py ├── module_1.py └── module_2.py …

  9. python - Module not found - "No module named" - Stack Overflow

    My issue was that it was installed for Python, but not for Python 3. To check to see if a module is installed for Python 3, run: python3 -m pip uninstall moduleName After doing this, if you find …

  10. python - How to retrieve a module's path? - Stack Overflow

    I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from. How do I retrieve a module's path in python?