Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39969
| References | <d7760f61-08dd-4186-8844-5f8415773a49@googlegroups.com> <kgio69$5i7$1@theodyn.ncf.ca> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2013-02-26 09:50 -0700 |
| Subject | Re: yield expression |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2551.1361897462.2939.python-list@python.org> (permalink) |
On Tue, Feb 26, 2013 at 9:34 AM, Colin J. Williams <cjw@ncf.ca> wrote: > Perhaps it's becaoue (teild count) is a statement. Statements do not return > a value. yield is a bit of an odd duck in that it's both a statement and an expression. Compare: http://docs.python.org/3/reference/simple_stmts.html#the-yield-statement http://docs.python.org/3/reference/expressions.html#yieldexpr
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
yield expression Ziliang Chen <zlchen.ken@gmail.com> - 2013-02-24 16:36 -0800
Re: yield expression "Colin J. Williams" <cjw@ncf.ca> - 2013-02-26 11:34 -0500
Re: yield expression Ian Kelly <ian.g.kelly@gmail.com> - 2013-02-26 09:50 -0700
Re: yield expression Dave Angel <davea@davea.name> - 2013-02-26 12:05 -0500
Re: yield expression "Vytas D." <vytasd2013@gmail.com> - 2013-02-26 17:07 +0000
Re: yield expression "Colin J. Williams" <cjw@ncf.ca> - 2013-02-26 13:44 -0500
Re: yield expression Dave Angel <davea@davea.name> - 2013-02-26 21:59 -0500
Re: yield expression "Colin J. Williams" <cjw@ncf.ca> - 2013-02-26 13:44 -0500
csiph-web