devel/py-undefined 0.0.8_1 MidnightBSD
Simple package
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
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 |
|---|---|---|
| MidnightBSD | devel/py-undefined | 0.0.8_1 |
| FreeBSD | devel/py-undefined | 0.0.8 |
| DragonFly | devel/py-undefined | 0.0.8 |
| HardenedBSD | devel/py-undefined | 0.0.8 |
| GhostBSD | devel/py-undefined | 0.0.8 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}undefined
From mports:
cd /usr/mports/devel/py-undefined && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}undefined>0:devel/py-undefined
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}flit-core>=0: devel/py-flit-core
Build dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| undefined-0.0.8.tar.gz | 3137 | c6f237c0e3d7e7519694b21bd471dc25ee3c3379d9c23b74ebf02aa349c5cff7 |
Master sites 1
- PYPI