Not found in the documentation

Chris Angelico rosuav at gmail.com
Tue Apr 27 04:18:40 EDT 2021


On Tue, Apr 27, 2021 at 6:11 PM elas tica <elasstiika at gmail.com> wrote:
>
>
> > Python has this thing called interactive mode that makes it possible to
> > discover answers even faster than looking in the docs
>
> To go further :
> Python has this thing called source code that makes it possible to discover answers even faster than looking in the docs
>

Hmm, that's a bit of a trap. CPython has source code, but the Python
language specification is not the CPython source code. There is
definitely value in having certain behaviours documented, as it allows
other Python implementations to know what's part of the language
definition and what's an implementation detail of CPython.

However, in this case, the general information in the docs is
absolutely sufficient, and the basic principle that the repr should
(where possible) be a valid literal should explain what's needed.

ChrisA


More information about the Python-list mailing list