From 0d5bf11f0dae50ef57462ad2bc51577a3607bc82 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 29 Apr 2022 06:42:11 -0700 Subject: [PATCH] change iterator to iterable --- README.md | 6 +++--- templates/readme_template | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 89c06721..08d6b622 100644 --- a/README.md +++ b/README.md @@ -377,9 +377,9 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq #### Using Streaming Parsers as Python Modules -Streaming parsers accept any iterable object and return an iterator object -(generator) 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 +Streaming parsers accept any iterable object and return an iterable 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 or use the diff --git a/templates/readme_template b/templates/readme_template index 938e0dba..5f648a3f 100644 --- a/templates/readme_template +++ b/templates/readme_template @@ -279,9 +279,9 @@ $ ping 1.1.1.1 | jc --ping-s -u | jq #### Using Streaming Parsers as Python Modules -Streaming parsers accept any iterable object and return an iterator object -(generator) 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 +Streaming parsers accept any iterable object and return an iterable 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 or use the