Skip to main content

making poor life choices for conference talks

Project description

do-while

making poor life choices for conference talks

version license

Install

$ pip install do-while

Usage

Do a do-while loop:

from do_while import do, while_

queue = [1, 2, 3]

@do
def loop():
    item = queue.pop()
    print(item)

while_(queue)

# 1
# 2
# 3

Do an until loop:

from do_while import until

k = 0

@until(lambda: k > 4)
def loop():
    nonlocal k
    print(k)
    k += 1

# 0
# 1
# 2
# 3
# 4

License

do-while is copyright Amethyst Reese, and licensed under the MIT license.

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

do_while-4.2.7.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

do_while-4.2.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file do_while-4.2.7.tar.gz.

File metadata

  • Download URL: do_while-4.2.7.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for do_while-4.2.7.tar.gz
Algorithm Hash digest
SHA256 b2367645dd6c086ac207d6aa0010c8d61e000ff365c8016ea5461041cf352d78
MD5 260dede6ce6a6a50ee3fead3c560ff39
BLAKE2b-256 95276dab971b4e2f05f896c7d7a4594de8356944bb9238ff305fd4efb97d50b2

See more details on using hashes here.

File details

Details for the file do_while-4.2.7-py3-none-any.whl.

File metadata

  • Download URL: do_while-4.2.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for do_while-4.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 09aef3bc132a02d74eddac007188976f87bb6be4c08cc796a102a4a395f115d6
MD5 ebac463d800ca00f91649af3da7682bd
BLAKE2b-256 80bae65c09a0ea44f5faa752660374cd7dec476ae2260ebef05c5f6f8e18a442

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