Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107424
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Alan Evangelista <alanoe@linux.vnet.ibm.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: PEP proposal: sequence expansion support for yield statement: yield * |
| Date | Wed, 20 Apr 2016 16:54:48 -0300 |
| Lines | 15 |
| Message-ID | <mailman.39.1461182700.12923.python-list@python.org> (permalink) |
| References | <573e61523bfc412ca8674b06d70f2fd7@sraex01sc.sisa.samsung.com> <5717DE88.4070807@linux.vnet.ibm.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de /X/nO179QcgwzzZVEt0gNAspndEtFwNvOi7U0toHT+Ng== |
| Return-Path | <alanoe@linux.vnet.ibm.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:PEP': 0.07; 'syntax': 0.13; '*sequence': 0.16; 'received:9': 0.16; 'received:ibm.com': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sequence:': 0.16; 'subject:yield': 0.16; '(the': 0.22; 'subject:support': 0.22; 'elements': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'sequence': 0.27; 'yield': 0.27; 'alan': 0.29; 'concise': 0.29; 'common': 0.33; 'header:Received:8': 0.35; 'follows:': 0.35; 'propose': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'does': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; 'more': 0.63; 'obvious': 0.76; 'subject: *': 0.84 |
| X-IBM-Helo | d24dlp02.br.ibm.com |
| X-IBM-MailFrom | alanoe@linux.vnet.ibm.com |
| X-IBM-RcptTo | python-list@python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 |
| In-Reply-To | <573e61523bfc412ca8674b06d70f2fd7@sraex01sc.sisa.samsung.com> |
| X-TM-AS-MML | disable |
| X-Content-Scanned | Fidelis XPS MAILER |
| x-cbid | 16042019-0025-0000-0000-00000FCE2839 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <5717DE88.4070807@linux.vnet.ibm.com> |
| X-Mailman-Original-References | <573e61523bfc412ca8674b06d70f2fd7@sraex01sc.sisa.samsung.com> |
| Xref | csiph.com comp.lang.python:107424 |
Show key headers only | View raw
> 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