Terry J. Reedy <tjre...@udel.edu> added the comment:

Looking around further, examples meant to be executable as is are given 
interactive prompts and needed doctest directives

    >>> gen  #doctest: +ELLIPSIS
    <generator object generate_ints at ...>

I think that this example should get the same treatment.  Non-executable 
examples are usually clearly non-executable because then contain undefined 
names line 'expr2' and 'sequence2', whereas this example starts by defining 
'line_list'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39971>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to