About 50 results
Open links in new tab
  1. How do Python's any and all functions work? - Stack Overflow

    58 How do Python's any and all functions work? any and all take iterables and return True if any and all (respectively) of the elements are True.

  2. python - Use a.any () or a.all () - Stack Overflow

    Dec 26, 2015 · Use a.any () or a.all () Asked 10 years, 3 months ago Modified 2 years, 8 months ago Viewed 583k times

  3. 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 Let's create these …

  4. How to list all installed packages and their versions in Python?

    Is there a way in Python to list all installed packages and their versions? I know I can go inside python/Lib/site-packages and see what files and directories exist, but I find this very awkward. ...

  5. How to upgrade all Python packages with pip

    Apr 9, 2016 · Is it possible to upgrade all Python packages at one time with pip? Note: that there is a feature request for this on the official issue tracker.

  6. python - How do I list all files of a directory? - Stack Overflow

    Jul 9, 2010 · In Python 3, generator is the default behavior Not sure if returning a list is still mandatory (or a generator would do as well), but passing a generator to the list constructor, will create a list out …

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

    However with an interactive python shell like IPython you can use tab-completion to get an overview of all objects defined in the module. This is much more convenient, than using a script and print to see …

  8. python - How do I remove all packages installed by pip? - Stack Overflow

    How do I uninstall all packages installed by pip from my currently activated virtual environment?

  9. How do I get a list of locally installed Python modules?

    It should dump all the module names as one really big Python list. The x[1] bit is used to pluck the module name out of the tuples generated by pkgutil.iter_modules().

  10. python - Using any () and all () to check if a list contains one set of ...

    190 Generally speaking: all and any are functions that take some iterable and return True, if in the case of all, no values in the iterable are falsy; in the case of any, at least one value is truthy. A value x is …