BSD Ports

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

SystemPortVersion
MidnightBSDdevel/py-undefined0.0.8_1
FreeBSDdevel/py-undefined0.0.8
DragonFlydevel/py-undefined0.0.8
HardenedBSDdevel/py-undefined0.0.8
GhostBSDdevel/py-undefined0.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

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
undefined-0.0.8.tar.gz3137c6f237c0e3d7e7519694b21bd471dc25ee3c3379d9c23b74ebf02aa349c5cff7
Master sites 1
  • PYPI