[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

Ama Aje My Fren report at bugs.python.org
Mon May 25 12:40:09 EDT 2020


Ama Aje My Fren <amaajemyfren at gmail.com> added the comment:

On Sun, May 24, 2020 at 11:34 PM Chas Belov <report at bugs.python.org> wrote:

>
> I'm guessing your point is that we only need to show >>> and ... when there will be print output so that we need to distinguish between what is input and what is output.
>

Yes, that is my understanding of the devguide.

> As someone who is currently learning Python, however, consistency in presentation is important to me and reduces cognitive load.

This is a valid concern, but it may not be the case that all people
will face this issue. More importantly it should be right so the
second time you come back to refresh on a point you can also grasp it
quickly ... no?

>
> By REPL, do you mean Read-Eval-Print Loop? I'm not familiar with the acronym and that's what Google is telling me it means. But a Read-Eval-Print Loop would have output,
> and my understanding is that you are arguing against use of ... when there is no output.
>

Yes - that is the shell of CPython that does the Read-Eval-Print Loop.

My reading of the Docs Dev-quide - and I am not an expert -
discourages the sys.ps1 and sys.ps2 (although the current docs site
can hide them to allow for copy-pasta)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40748>
_______________________________________


More information about the Python-bugs-list mailing list