Skip to main content

undefined by Ouroboros Coding

pypi version MIT License

undefined: A value to use as a default value to indicate an argument was absolutely not set buy the user of the method. Will not match as true to any other value but itself.

Installation

pip install undefined-oc

Import

import undefined

def print_me(value = undefined):
  if value is undefined:
    print('Please pass a value to print')
  else:
    print(value)
>>> print_me('hello, there')
hello, there
>>> print_me(None)
None
>>> print_me([])
[]
>>> print_me()
Please pass a value to print

Release files for undefined-oc 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for undefined-oc 1.0.0
File Size Uploaded
undefined-oc-1.0.0.tar.gz 2.7 kB Details

Release files / undefined-oc-1.0.0.tar.gz

Download URL undefined-oc-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cf7bf857eedaf87d65a5edda93dd25523f66e89834fb140f4b911a1a30fcab07
BLAKE2b-256 checksum
How to use checksums
275ac1649f3048c2688ba3d8f6be41fe8be67eec4fe7fdcb630486ade76af222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page