[GRASS-git] [OSGeo/grass] 744610: python: Early exit from functions or loops (#4910)

Edouard Choinière noreply at github.com
Thu Jan 16 07:19:59 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 74461016ce499973f193a65c66f7cbc502330d80
      https://github.com/OSGeo/grass/commit/74461016ce499973f193a65c66f7cbc502330d80
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-01-16 (Thu, 16 Jan 2025)

  Changed paths:
    M python/grass/experimental/create.py
    M python/grass/grassdb/history.py
    M python/grass/gunittest/case.py
    M python/grass/gunittest/loader.py
    M python/grass/gunittest/reporters.py
    M python/grass/imaging/images2gif.py
    M python/grass/imaging/images2ims.py
    M python/grass/imaging/images2swf.py
    M python/grass/jupyter/map.py
    M python/grass/pygrass/gis/__init__.py
    M python/grass/pygrass/modules/interface/flag.py
    M python/grass/pygrass/modules/interface/module.py
    M python/grass/pygrass/modules/interface/parameter.py
    M python/grass/pygrass/modules/interface/typedict.py
    M python/grass/pygrass/raster/__init__.py
    M python/grass/pygrass/raster/abstract.py
    M python/grass/pygrass/raster/category.py
    M python/grass/pygrass/vector/__init__.py
    M python/grass/pygrass/vector/abstract.py
    M python/grass/pygrass/vector/geometry.py
    M python/grass/pygrass/vector/table.py
    M python/grass/script/core.py
    M python/grass/script/task.py
    M python/grass/temporal/abstract_map_dataset.py
    M python/grass/temporal/list_stds.py
    M python/grass/temporal/mapcalc.py
    M python/grass/temporal/metadata.py
    M python/grass/temporal/space_time_datasets.py
    M python/grass/temporal/temporal_raster_base_algebra.py
    M python/grass/temporal/temporal_vector_algebra.py

  Log Message:
  -----------
  python: Early exit from functions or loops (#4910)

* python: Early exit functions

Flattens nested conditionals and moves error messages near the top

* python: Early exit loops when possible

Flattens nested conditionals and moves error messages or returns near the top



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list