[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking around further, examples meant to be executable as is are given interactive prompts and needed doctest directives >>> gen #doctest: +ELLIPSIS I think that this example should get the same treatment. Non-executable examples are usually cle

[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Working on PR. The example 1 further on has a stray meaningless ellipsis. for expr3 in sequence3 ... if condition3 Perhaps this was meant to follow the next line, but I will remove it. -- __

[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In think examples should run and that '...' should be replaced by something like "' \n', ''". The blank string looks ahead to the next example, which adds ' if line != ""' to the comprehension. -- nosy: +terry.reedy stage: -> needs patch title: Err