A extension enhancing Python loop.
Project description
LoopEx
A extension enhancing Python loop.
Usage
First, install package via pip.
pip install loopex@git+https://github.com/glyzinieh/python-loop-extension
Second, import module before the loop.
from loopex import LoopEx
Features
Now, one feature is available. We plan to add more features in the future.
do_while(condition)
This enables you to implement "do...while" in Python in a simple way. This is similar to the while statement, but the expression is tested after the suite is executed.
do_while = LoopEx().do_while
result = ''
i = 0
while do_while(i < 5):
i += 1
result += str(i)
print(result) # 12345
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
loopex-0.0.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file loopex-0.0.1.tar.gz
.
File metadata
- Download URL: loopex-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81008ee6ac632b002831f430cbb93a8511af50bcd1fb319e683e9927d8dbf078 |
|
MD5 | d67fbbf8c8defc926a4c200084661ddc |
|
BLAKE2b-256 | 705f3c72ed3219b7181fac0c0d435e09795a0c5b92b04e993b95749fb79c3204 |
File details
Details for the file loopex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: loopex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0585feba5c4f27e6dce1a0a3db082028441602171a7e2866d866840d89bd67 |
|
MD5 | 3582666a1bad7a6e025efcbbd890b800 |
|
BLAKE2b-256 | 8200dc28be230d223b6a02c0300950f99ce0ad252756bdbe01f7b81d7534ef45 |