Author zbysz
Recipients Yury.Selivanov, alex, aronacher, asvetlov, eric.araujo, gcewing, ncoghlan, rfk, rhettinger, rndblnch, zbysz
Date 2011-11-22.23:36:10
SpamBayes Score 0.000626586
Marked as misclassified No
Message-id <1322004972.35.0.443867104375.issue11682@psf.upfronthosting.co.za>
In-reply-to
Content
Updated doc patch 0001-2.diff: following ncoghlan's request, the bulk of yield documentation is kept in expressions.rst, and simple_stmts.rst mostly refers to the other one. (In previous version it was the other way around).

After doing this change, I still think that it is better to have most of the documentation in the _statement_ part, and keep the _expression_ part relatively simple. The reason is that yield does more than just return a value, but also throws exceptions, suspends execution, etc. This is detached from the fact that is can be used in an expression.

Unfortunately yield as an expression is the only case where a statement can be used in an expression. Therefore there aren't any other cases which could be used as a guide.
History
Date User Action Args
2011-11-22 23:36:13zbyszsetrecipients: + zbysz, rhettinger, gcewing, ncoghlan, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, Yury.Selivanov
2011-11-22 23:36:12zbyszsetmessageid: <1322004972.35.0.443867104375.issue11682@psf.upfronthosting.co.za>
2011-11-22 23:36:11zbyszlinkissue11682 messages
2011-11-22 23:36:11zbyszcreate