making poor life choices for conference talks
Project description
do-while
making poor life choices for conference talks
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2367645dd6c086ac207d6aa0010c8d61e000ff365c8016ea5461041cf352d78
|
|
| MD5 |
260dede6ce6a6a50ee3fead3c560ff39
|
|
| BLAKE2b-256 |
95276dab971b4e2f05f896c7d7a4594de8356944bb9238ff305fd4efb97d50b2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09aef3bc132a02d74eddac007188976f87bb6be4c08cc796a102a4a395f115d6
|
|
| MD5 |
ebac463d800ca00f91649af3da7682bd
|
|
| BLAKE2b-256 |
80bae65c09a0ea44f5faa752660374cd7dec476ae2260ebef05c5f6f8e18a442
|