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


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.2.0.tar.gz (3.0 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.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for undefined_python-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4be829f2087dd98559294897e548ac754e777f77ceb50316279c22638ef64d6f
MD5 ee627433bd8b8352a8f9a6dd2172b8dc
BLAKE2b-256 320d072e61088cea1fd4ebc4ba14b38354d933aab0df90f4360cb4a5d8f9568c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undefined_python-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c22bfc1b1c17bca743e15f4a32a785f2a5321d5f64c9f52451c4d4398240bf0
MD5 db41a68b77f6f1038ffabd989e64d555
BLAKE2b-256 51ed04b9b6464024f61e1062f644a72cd6806ed08bbfea09cf1b26619a3f88c1

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