Verifiably better, validated Enum for Python

Chris Angelico rosuav at gmail.com
Sat May 27 02:26:12 EDT 2017


On Sat, May 27, 2017 at 3:31 PM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
> Python has nothing like that. What we have is a collection of ad hoc and
> subjective heuristics. If you want to call that a de facto standard, I'm
> okay with that, so long as we're aware of the significant gap between a de
> facto standard and an actual, formal standard from a standards
> organisation.

I can accept "de facto standard", as long as you can accept that that
standard is independent of CPython. The standard, such as it is, is a
matter of documentation more than implementation; PEPs make for great
representations of standards, as they often define semantics (and
possibly syntax) without a single line of code to back them.

ChrisA



More information about the Python-list mailing list