1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

add next() info

This commit is contained in:
Kelly Brazil
2021-09-23 09:04:37 -07:00
parent f9be5651da
commit 9c6c6c4330
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq
Streaming parsers accept any iterable object and return a generator iterator object allowing lazy processing of the data. The input data should iterate on lines of string data. Examples of good input data are `sys.stdin` or `str.splitlines()`.
To use the generator object in your code, simply loop through it:
To use the generator object in your code, simply loop through it or use the [next()](https://docs.python.org/3/library/functions.html#next) builtin function:
```python
import jc.parsers.ls_s

View File

@ -197,7 +197,7 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq
Streaming parsers accept any iterable object and return a generator iterator object allowing lazy processing of the data. The input data should iterate on lines of string data. Examples of good input data are `sys.stdin` or `str.splitlines()`.
To use the generator object in your code, simply loop through it:
To use the generator object in your code, simply loop through it or use the [next()](https://docs.python.org/3/library/functions.html#next) builtin function:
```python
import jc.parsers.ls_s