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 -- https://mail.python.org/mailman/listinfo/python-list