This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Stephen.Lacy
Recipients Stephen.Lacy, docs@python
Date 2012-05-22.04:54:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337662493.01.0.380911981252.issue14878@psf.upfronthosting.co.za>
In-reply-to
Content
There's reasonable documentation of the yield statement for most python versions under Section 6: Simple Statements, particularly 6.8 "The Yield Statement" (http://docs.python.org/release/2.7/reference/simple_stmts.html#the-yield-statement)

But, there's no mention of the return value of the yield statement, or that the send statement even exists.  It's mentioned in passing here under "PEP342 New Generator Features" (http://docs.python.org/whatsnew/2.5.html#pep-342-new-generator-features) but should be given fuller explanation and cross-linking from the yield statement documentation. 

It's also mentioned a bit here: http://docs.python.org/howto/functional.html#passing-values-into-a-generator but again, not under the language documentation itself.
History
Date User Action Args
2012-05-22 04:54:53Stephen.Lacysetrecipients: + Stephen.Lacy, docs@python
2012-05-22 04:54:53Stephen.Lacysetmessageid: <1337662493.01.0.380911981252.issue14878@psf.upfronthosting.co.za>
2012-05-22 04:54:52Stephen.Lacylinkissue14878 messages
2012-05-22 04:54:52Stephen.Lacycreate