notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-undefined Simple package
0.0.8 devel on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.0.8Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
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
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

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>)
  • py39: py39-undefined
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):
py311-undefined
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.0.80.0.8-0.0.80.0.8---
FreeBSD:13:quarterly0.0.80.0.8-0.0.80.0.8---
FreeBSD:14:latest0.0.80.0.8-0.0.80.0.8---
FreeBSD:14:quarterly0.0.80.0.8-0.0.80.0.8---
FreeBSD:15:latest0.0.80.0.8n/a0.0.8n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py39-flit-core>=0 : devel/py-flit-core@py39
  2. python3.9 : lang/python39
  3. py39-build>=0 : devel/py-build@py39
  4. py39-installer>=0 : devel/py-installer@py39
Test dependencies:
  1. python3.9 : lang/python39
Runtime dependencies:
  1. 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:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/u/undefined/
  2. https://pypi.org/packages/source/u/undefined/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.0.8
31 Mar 2024 03:05:07
commit hash: 6c7bd7025568cd8d16db6dab06e16c143e09d2f1commit hash: 6c7bd7025568cd8d16db6dab06e16c143e09d2f1commit hash: 6c7bd7025568cd8d16db6dab06e16c143e09d2f1commit hash: 6c7bd7025568cd8d16db6dab06e16c143e09d2f1 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
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