PEP proposal: sequence expansion support for yield statement: yield *

Random832 random832 at fastmail.com
Wed Apr 20 15:53:44 EDT 2016


On Wed, Apr 20, 2016, at 15:34, Ken Seehart wrote:
> Currently the common pattern for yielding the elements in a sequence is
> as follows:
>> for x in sequence: yield x
>> I propose the following replacement (the result would be identical):
>> yield *sequence

yield from sequence


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /