About 9,780,000 results
Open links in new tab
  1. What does "nonlocal" do in Python 3? - Stack Overflow

    What does nonlocal do in Python 3.x? To close debugging questions where OP needs nonlocal and doesn't realize it, please use Is it possible to modify variable in python that is in outer, but …

  2. python - Finding local maxima/minima with Numpy in a 1D …

    Jan 7, 2011 · 174 Can you suggest a module function from numpy/scipy that can find local maxima/minima in a 1D numpy array? Obviously the simplest approach ever is to have a look …

  3. How do I import other Python files? - Stack Overflow

    How do I import files in Python? I want to import: a file (e.g. file.py) a folder a file dynamically at runtime, based on user input one specific part of a file (e.g. a single function)

  4. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  5. python - Importing files from different folder - Stack Overflow

    I have this folder structure: application ├── app │ └── folder │ └── file.py └── app2 └── some_folder └── some_file.py How can I import a function from file.py, from within som...

  6. Local functions in Python - Stack Overflow

    Local functions in Python [duplicate] Asked 16 years, 1 month ago Modified 3 years, 1 month ago Viewed 63k times

  7. How do I get the current time in Python? - Stack Overflow

    556 How do I get the current time in Python? The time module The time module provides functions that tell us the time in "seconds since the epoch" as well as other utilities.

  8. How can I install a local package with UV? - Stack Overflow

    Mar 25, 2025 · I’m working on a Python project using uv as my package manager and struggling with ModuleNotFoundError when importing local packages. My goal is to make config/ and ...

  9. python - How do I print a datetime in the local timezone ... - Stack ...

    As of python 3.6 calling astimezone() without a timezone object defaults to the local zone (docs). This means you don't need to import tzlocal and can simply do the following:

  10. Installing Python packages from local file system folder to …

    Is it possible to install packages using pip from the local filesystem? I have run python setup.py sdist for my package, which has created the appropriate tar.gz file. This file is stored on my sy...