A Python implementation of undefined value similar to JavaScript
Project description
Undefined Python
A Python implementation of undefined value similar to JavaScript.
Installation
pip install undefined-python
Usage
from pyundefined import undefined
if some_value is undefined:
print("Value is undefined")
# undefined is falsy
if not undefined:
print("undefined is falsy")
Features
-
Singleton pattern - only one instance exists
-
Compatible with Python 2.7+ and Python 3.5+
-
Falsy in boolean context
-
Proper equality checking
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
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 undefined_python-1.2.0.tar.gz.
File metadata
- Download URL: undefined_python-1.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4be829f2087dd98559294897e548ac754e777f77ceb50316279c22638ef64d6f
|
|
| MD5 |
ee627433bd8b8352a8f9a6dd2172b8dc
|
|
| BLAKE2b-256 |
320d072e61088cea1fd4ebc4ba14b38354d933aab0df90f4360cb4a5d8f9568c
|
File details
Details for the file undefined_python-1.2.0-py3-none-any.whl.
File metadata
- Download URL: undefined_python-1.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c22bfc1b1c17bca743e15f4a32a785f2a5321d5f64c9f52451c4d4398240bf0
|
|
| MD5 |
db41a68b77f6f1038ffabd989e64d555
|
|
| BLAKE2b-256 |
51ed04b9b6464024f61e1062f644a72cd6806ed08bbfea09cf1b26619a3f88c1
|