Verifiably better, validated Enum for Python
Chris Angelico
rosuav at gmail.com
Sat May 27 00:20:57 EDT 2017
On Sat, May 27, 2017 at 12:59 PM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
>> What is a standards-compliant Python interpreter allowed to do?
>
> There's no such thing, so your question is moot.
>
> There is no Python standard. There's only:
>
> - do what CPython does;
>
> - do what the documentation says;
>
> - if they disagree, or don't say, ask Guido;
>
> - if he doesn't answer, or doesn't care, do what you like.
>
Really? Then how come other Python implementations can be deemed to be
"correct" or "incorrect"? There *is* a Python standard, even if it's a
bit ad-hoc and informal. Often the standard isn't "codified" until
some other implementation actually asks the question ("CPython does
this, but is that required?"), but the conceptual standard does exist.
ChrisA
More information about the Python-list
mailing list