Date: Thu, 17 Jan 2019 12:14:41 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 234939] [NEW PORT] devel/py-aenum Advanced Enumerations compatible with stdlib Enum Message-ID: <bug-234939-7788-vLaaOlN2Mu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-234939-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-234939-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234939 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: swills Date: Thu Jan 17 12:13:40 UTC 2019 New revision: 490549 URL: https://svnweb.freebsd.org/changeset/ports/490549 Log: devel/py-aenum: create port Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants aenum includes a Python stdlib Enum-compatible data type, as well as a metaclass-based NamedTuple implementation and a NamedConstant class. An Enum is a set of symbolic names (members) bound to unique, constant values. Within an enumeration, the members can be compared by identity, and the enumeration itself can be iterated over. If using Python 3 there is built= -in support for unique values, multiple values, auto-numbering, and suspensio= n of aliasing (members with the same value are not identical), plus the abilit= y to have values automatically bound to attributes. A NamedTuple is a class-based, fixed-length tuple with a name for each possible position accessible using attribute-access notation as well as the standa= rd index notation. A NamedConstant is a class whose members cannot be rebound; it lacks all other Enum capabilities, however; consequently, it can have duplicate values. WWW: https://bitbucket.org/stoneleaf/aenum PR: 234939 Submitted by: Adam Wolk <a.wolk@fudosecurity.com> Changes: head/devel/Makefile head/devel/py-aenum/ head/devel/py-aenum/Makefile head/devel/py-aenum/distinfo head/devel/py-aenum/pkg-descr --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234939-7788-vLaaOlN2Mu>