New submission from Luc Bougé:

On page <https://docs.python.org/3.6/_sources/library/stdtypes.txt>, the 
following program is listed.

It raises a syntactic error.

An empty line is missing after "...     n += val" to close the loop body. 

   >>> # iteration
   >>> n = 0
   >>> for val in values:
   ...     n += val
   >>> print(n)
   504

----------
assignee: docs@python
components: Documentation
messages: 298445
nosy: docs@python, lucbouge
priority: normal
severity: normal
status: open
title: Missing line in example program
type: resource usage
versions: Python 3.6

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

Reply via email to