Skip to content

ouroboroscoding/undefined-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NOT SET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages