Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107422
| From | Random832 <random832@fastmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: PEP proposal: sequence expansion support for yield statement: yield * |
| Date | 2016-04-20 15:53 -0400 |
| Message-ID | <mailman.37.1461182027.12923.python-list@python.org> (permalink) |
| References | <573e61523bfc412ca8674b06d70f2fd7@sraex01sc.sisa.samsung.com> <1461182024.3047115.584804185.6B0800F9@webmail.messagingengine.com> |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PEP proposal: sequence expansion support for yield statement: yield * Random832 <random832@fastmail.com> - 2016-04-20 15:53 -0400
csiph-web