Message197505
| Author |
terry.reedy |
| Recipients |
docs@python, louiscipher, mgrazebrook, purplezephyr, rhettinger, terry.reedy |
| Date |
2013年09月11日.19:47:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1378928867.4.0.695390996409.issue11163@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|