»Hacking Around Enumeration«
2019-06-03, 16:30–16:55, Main Hall
Extendable and easy-to-use lightweight enumeration alternative.
Presentation of usage of enumeration implementation by wrapping collections.namedtuple . Demonstrate advantages of proposal versus standard enum APIs: Less verbose Compatible with built-in types Collect constant objects - e.g., string literals - into a single container As above - with conversion, e.g. - to pathlib.path Simple processing of nested JSONs - one-stop JSON object creation One-stop loader for configuration files * Automatic generation of sequences - e.g., KB, MB, GB, ...