Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76288 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-08-14 19:38 +1000 |
| Last post | 2014-08-14 19:38 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [Q] is 'yield from' syntax sugar for 'for'+'yield'? Chris Angelico <rosuav@gmail.com> - 2014-08-14 19:38 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-08-14 19:38 +1000 |
| Subject | Re: [Q] is 'yield from' syntax sugar for 'for'+'yield'? |
| Message-ID | <mailman.12989.1408009125.18130.python-list@python.org> |
On Thu, Aug 14, 2014 at 7:35 PM, Makoto Kuwata <kwatch@gmail.com> wrote: > I understand that:: > > yield from xs > > is syntax suger of:: > > for x in xs: > yield x Not just. It's like that for simple cases, but there are edge cases that are much more complicated to do manually, and are simply taken care of. Best would be to read the PEP itself: http://www.python.org/dev/peps/pep-0380/ ChrisA
Back to top | Article view | comp.lang.python
csiph-web