Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
A file object is its own iterator, for example iter(f) returns f
(unless f is closed). When a file is used as an iterator, typically
in a for loop (for example, for line in f: print line), the next()
method is called repeatedly. This method returns the next input line,
or raises StopIteration when EOF is hit.

src/n/u/nupic-HEAD/tests/unit/py2/nupic/research/anomalyzer_test.py   nupic(Download)
        anomalyzer.sample(inputFile, outputFile, 1)
    result = StringIO(output.getvalue())
    result.next()
    result.next()
    result.next()

src/a/t/atsim.potentials-0.1.1/tests/__init__.py   atsim.potentials(Download)
       out = sio)
    sio.seek(0)
    sio.next()
    line = sio.next()
    tokens = line.split()