Port details |
- py-undefined Simple package
- 0.0.8 devel =2 0.0.8Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-03-31 03:42:15
- Last Update: 2024-03-31 03:05:07
- Commit Hash: 6c7bd70
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/Carreau/undefined
- 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
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}undefined>0:devel/py-undefined@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-undefined/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-undefined
- pkg install py39-undefined
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-undefined listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-undefined
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1710609060
SHA256 (undefined-0.0.8.tar.gz) = c6f237c0e3d7e7519694b21bd471dc25ee3c3379d9c23b74ebf02aa349c5cff7
SIZE (undefined-0.0.8.tar.gz) = 3137
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-flit-core>=0 : devel/py-flit-core@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-undefined
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.0.8 31 Mar 2024 03:05:07 |
Po-Chuan Hsieh (sunpoet) |
devel/py-undefined: Add py-undefined 0.0.8
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 |
Number of commits found: 1
|