Message148153
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. |
|
Date |
User |
Action |
Args |
2011-11-22 23:36:13 | zbysz | set | recipients:
+ zbysz, rhettinger, gcewing, ncoghlan, rndblnch, aronacher, eric.araujo, alex, rfk, asvetlov, Yury.Selivanov |
2011-11-22 23:36:12 | zbysz | set | messageid: <1322004972.35.0.443867104375.issue11682@psf.upfronthosting.co.za> |
2011-11-22 23:36:11 | zbysz | link | issue11682 messages |
2011-11-22 23:36:11 | zbysz | create | |
|