----------------------------------------------------------------------------------
@MSGID:
<mailman.343.1695656562.23016.python-list@python.org> 460becbd
@REPLY:
<CAPTjJmp4cDF7uTXoopefyrqgiDzasN9ARLx1G+CLuSitmfAb0g@mail.gmail.com> 9acbad75
@REPLYADDR Chris Angelico <rosuav@gmail.com>
@REPLYTO 2:5075/128 Chris Angelico
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<mailman.343.1695656562.23016.python-list@python.org>
@RFC-References:
<CAApdmf1h9Brwre5CQGWKUEzbogdjsOettXp1BdOGHy+x6v7-wA@mail.gmail.com> <b2ba8f1e-1934-14ff-bebb-a0703f0e5eb1@tompassin.net>
<CAApdmf3nnkDony12t-SbmO3OyuQ+REmgS1N-0By-qUTQM38qKA@mail.gmail.com>
<CAPTjJmp4cDF7uTXoopefyrqgiDzasN9ARLx1G+CLuSitmfAb0g@mail.gmail.com>
@TZUTC: 1000
@TID: FIDOGATE-5.12-ge4e8b94
On Tue, 26 Sept 2023 at 01:39, Jonathan Gossage via Python-list
<
python-list@python.org> wrote:
>
> Many thanks, all. It turned out that my problem was not fully understanding
> the use and power of the unpack operator *. Using it to activate my
> generator made things start to work. I changed the line where I invoked the
> generator to:
> y = test1(*(a for a in st))
>
> adding the unpack operator.
>
You could simplify this with just the unpacking:
y = test1(*st)
ChrisA
--- FIDOGATE 5.12-ge4e8b94
* Origin: usenet.network (2:5075/128)
SEEN-BY: 50/109 301/1 467/888 4500/1 5000/111
5001/100 5005/49 5020/715 830
SEEN-BY: 5020/848 1042 4441 12000 5030/49 1081
5054/8 5061/133 5075/128
SEEN-BY: 5080/102 5083/1 444
@PATH: 5075/128 5020/1042 4441