No project description provided
Project description
pymaibool
Overview
pymaibool is a library for adding ambiguity to bool.
Usage
from pymaibool import pBool
# credibility: 50%
b = pBool(0.5)
print(b)
print(b)
print(b)
True
True
False
Methods
.get(true: Any, false: Any)
# True
b = pBool(1)
print(b.get("yes", "no"))
yes
.fix()
Fix the return to last return
b = pBool(0.5)
for i in range(10):
print(b)
if i == 4:
print("fix")
b.fix()
True
False
False
True
True
fix
True
True
True
True
True
.unfix()
Release fix()
b = pBool(0.5)
# fix it
b.fix()
for i in range(10):
print(b)
if i == 4:
print("unfix")
b.unfix()
True
True
True
True
True
unfix
False
False
True
False
True
version
0.1.2
Github
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
pymaibool-0.1.2.tar.gz
(2.8 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 pymaibool-0.1.2.tar.gz.
File metadata
- Download URL: pymaibool-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4c09161965361432c402115f2af66094a71123a23f72202955012976ba34950
|
|
| MD5 |
0d4be1a2e825366f79da3051f8891e06
|
|
| BLAKE2b-256 |
420b8a5c5a4ce1ea0dadd288ba483b697ed7e71b1a26d5e54f4b9072c546767c
|
File details
Details for the file pymaibool-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pymaibool-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d956c94644343e3f09c08212c560f9830e77677fe96625e08f003f1a035562b
|
|
| MD5 |
52dbc6cc5cc40917fe2ec5e5fce60150
|
|
| BLAKE2b-256 |
19c0b58f67bc1a94cac96c536594c14a5408daadfa3cd7b3d4a894887f718b64
|