[docs] [issue11163] iter() documentation code doesn't work

Terry J. Reedy report at bugs.python.org
Wed Sep 11 21:47:47 CEST 2013


Terry J. Reedy added the comment:

In the current 3.3.2 docs, 'STOP' has been replaced by '', so there is a change, and no infinite loop. However, this is still does not strike me as an example of 'useful' as 
  for line in iter(fp.readline, "STOP"): # is a bad version of
  for line in fp:
It does illustrate the behavior though.

----------
stage:  -> needs patch
versions: +Python 3.4 -Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11163>
_______________________________________


More information about the docs mailing list