On Sat, May 27, 2017 at 12:59 PM, Steve D'Aprano <steve+pyt...@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 -- https://mail.python.org/mailman/listinfo/python-list