Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107424
| From | Alan Evangelista <alanoe@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: PEP proposal: sequence expansion support for yield statement: yield * |
| Date | 2016-04-20 16:54 -0300 |
| Message-ID | <mailman.39.1461182700.12923.python-list@python.org> (permalink) |
| References | <573e61523bfc412ca8674b06d70f2fd7@sraex01sc.sisa.samsung.com> <5717DE88.4070807@linux.vnet.ibm.com> |
> 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 imho the current syntax is much more intuitive, it is obvious to infer what it does by looking at it. I favor a more intuitive syntax over a more concise one. Regards, Alan Evangelista
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PEP proposal: sequence expansion support for yield statement: yield * Alan Evangelista <alanoe@linux.vnet.ibm.com> - 2016-04-20 16:54 -0300
csiph-web