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.2.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multibreak-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5d6ad5f25846c8464007748a773b6ad1fbbf2451a7f37d65b2c6dad18ade96e1
MD5 0697fb44bc4f11e87fedc1e5cc1101d3
BLAKE2b-256 2566913ebb5adec1a66675c824b33ca383c074b52c2cb2b60825a9d92e126137

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multibreak-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57d6d682f0539822bb647fb59915903ba6e13b725068fdd228a4d4b8d5a6edaf
MD5 91926dfd93257df73b03ffa747a0fad1
BLAKE2b-256 d36ec20c18ed273d8abb4b379d69fb74dbc8fec790fa0752c7f8e14151f31067

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