[Bug 234939] [NEW PORT] devel/py-aenum Advanced Enumerations compatible with stdlib Enum
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 14 13:27:37 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234939
Bug ID: 234939
Summary: [NEW PORT] devel/py-aenum Advanced Enumerations
compatible with stdlib Enum
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: a.wolk at fudosecurity.com
Created attachment 201123
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201123&action=edit
svn diff of the new port
Hi ports@,
I'm attaching a new port for a python enum compatibility module for python<3.6
(but it also works fine in 3.6 on it's own).
This is required for some projects (like /usr/ports/datbase/pglast) when used
in combination with an older python than 3.6 - otherwise a runtime import error
would occur due to missing compat dependencies.
Work sponsored by: Fudo Security
pkg-descr:
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 suspension
of aliasing (members with the same value are not identical), plus the
ability 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 standard
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list