devel/py-undefined 0.0.8 DragonFly
Simple package
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 5.2 KiB, 13.8 KiB installed
Description
Ever needed a global object that act as None but not quite? Like for example keyword argument for function, where None make sense, so you need a default value.
One solution is to create as singleton object: mysingleton = object()
Though it becomes difficult to track the singleton across libraries, and teach users where to import this from. It's also relatively annoying use this singleton across library.
Introducing undefined: >>> import undefined >>> from undefined import Undefined >>> undefined is Undefined True
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-undefined | 0.0.8 |
| FreeBSD | devel/py-undefined | 0.0.8 |
| MidnightBSD | devel/py-undefined | 0.0.8_1 |
| HardenedBSD | devel/py-undefined | 0.0.8 |
| GhostBSD | devel/py-undefined | 0.0.8 |
Install
Binary package:
pkg install py311-undefined
From DPorts:
cd /usr/dports/devel/py-undefined && make install clean
Dependencies
Run dependencies 1
No port depends on this one.