Skip to main content

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 undefined 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

undefined_python-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

undefined_python-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file undefined_python-1.0.0.tar.gz.

File metadata

  • Download URL: undefined_python-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for undefined_python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38a7180d9286208ab34f68f410ce21f4358dbbc39eca5a80d289435c9cc9f6ca
MD5 aab5f004d654a07f903f2a4e51794303
BLAKE2b-256 ac4cf1a3016d5fa4f48696420ac1c2e4d14a4d89887ffae1394b9cf88cfd161e

See more details on using hashes here.

File details

Details for the file undefined_python-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for undefined_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb17ff4d39f730f0c5741d652ee59a2e85a6ab48c79d5f9ece0b90862cd7357d
MD5 1dca40a8cfc30bdf5689d1151060971e
BLAKE2b-256 9a90fb824a89e841365c14ed2392951b598eb2b676a56be51029a9ce16f2740d

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