Message197505
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. |
|
Date |
User |
Action |
Args |
2013-09-11 19:47:47 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, docs@python, mgrazebrook, louiscipher, purplezephyr |
2013-09-11 19:47:47 | terry.reedy | set | messageid: <1378928867.4.0.695390996409.issue11163@psf.upfronthosting.co.za> |
2013-09-11 19:47:47 | terry.reedy | link | issue11163 messages |
2013-09-11 19:47:47 | terry.reedy | create | |
|