Skip to main content

A Python module to break out of multiple nested loops using break(n).

Project description

multibreak

multibreak lets you break out of multiple nested loops in Python easily.

Example

from multibreak import break_

for i in range(3):
    for j in range(3):
        if j == 1:
            break_(2)  # exits both loops
        print(i, j)

Works with any number of nested loops!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multibreak-0.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multibreak-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file multibreak-0.0.1.tar.gz.

File metadata

  • Download URL: multibreak-0.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.11.14 HTTPX/0.28.1

File hashes

Hashes for multibreak-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c04dfef05dd84c06d199bda2a044b0e0f36e5ba086db8b83971984cccb1b1b5
MD5 c99a83b389879c6566b989bee688b3a8
BLAKE2b-256 81b1a0e0f819f7cddb9ce3a5bfbe11c6cfaffb1892c4ccd2732a4c9423c3cab8

See more details on using hashes here.

File details

Details for the file multibreak-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: multibreak-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.11.14 HTTPX/0.28.1

File hashes

Hashes for multibreak-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d28980ff33a1a2c2fe7793507cecdd290fb8da7821641e9ba6290f42e8fdd91
MD5 29583a64c13e158be08cf15632c44a4e
BLAKE2b-256 ce41c4f4c7631762bd05c340f490a08a1fefd06058a503c5870eeefd2c363325

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page