From 72fdcb2b04dfad4a425ed79decd782f26becfa48 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 11 Aug 2021 01:01:14 -0700 Subject: [PATCH] Clarify pipeable.input_many docstring. --- voussoirkit/pipeable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voussoirkit/pipeable.py b/voussoirkit/pipeable.py index 50222b1..68b820d 100644 --- a/voussoirkit/pipeable.py +++ b/voussoirkit/pipeable.py @@ -147,8 +147,10 @@ def input( def input_many(args, *input_args, **input_kwargs): ''' - Given many input arguments, yield the input() results for all of them. + Given a list of input arguments, yield the input() results for all of them. This saves you from having to write the double for loop yourself. + This is useful when writing an argparser with nargs='+' where each arg + might be a string or !i or !c. ''' if isinstance(args, str): yield from input(args, *input_args, **input_kwargs)