mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
change iterator to iterable
This commit is contained in:
@ -377,9 +377,9 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq
|
|||||||
|
|
||||||
#### Using Streaming Parsers as Python Modules
|
#### Using Streaming Parsers as Python Modules
|
||||||
|
|
||||||
Streaming parsers accept any iterable object and return an iterator object
|
Streaming parsers accept any iterable object and return an iterable object
|
||||||
(generator) allowing lazy processing of the data. The input data should
|
allowing lazy processing of the data. The input data should iterate on lines
|
||||||
iterate on lines of string data. Examples of good input data are `sys.stdin` or
|
of string data. Examples of good input data are `sys.stdin` or
|
||||||
`str.splitlines()`.
|
`str.splitlines()`.
|
||||||
|
|
||||||
To use the generator object in your code, simply loop through it or use the
|
To use the generator object in your code, simply loop through it or use the
|
||||||
|
@ -279,9 +279,9 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq
|
|||||||
|
|
||||||
#### Using Streaming Parsers as Python Modules
|
#### Using Streaming Parsers as Python Modules
|
||||||
|
|
||||||
Streaming parsers accept any iterable object and return an iterator object
|
Streaming parsers accept any iterable object and return an iterable object
|
||||||
(generator) allowing lazy processing of the data. The input data should
|
allowing lazy processing of the data. The input data should iterate on lines
|
||||||
iterate on lines of string data. Examples of good input data are `sys.stdin` or
|
of string data. Examples of good input data are `sys.stdin` or
|
||||||
`str.splitlines()`.
|
`str.splitlines()`.
|
||||||
|
|
||||||
To use the generator object in your code, simply loop through it or use the
|
To use the generator object in your code, simply loop through it or use the
|
||||||
|
Reference in New Issue
Block a user