homepage

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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, christian.heimes, gpolo
Date 2008年02月07日.16:10:48
SpamBayes Score 0.016415803
Marked as misclassified No
Message-id <1202400650.21.0.696166986672.issue1916@psf.upfronthosting.co.za>
In-reply-to
Content
I know two real usages:
- the nose and py.test packages accept a generator function, as
described here:
http://codespeak.net/py/dist/test.html#generative-tests-yielding-more-tests
http://somethingaboutorange.com/mrl/projects/nose/#test-generators.
functions are collected with the help of the "inspect" module.
- the twisted framework use "inlineCallbacks": a function executes an
asynchronous operation and yields; execution is resumed when the
operation gets its results. "inlineCallbacks" is actually a a decorator.
Both cases make the difference between a generator function and a
regular function, even if it returns a generator. And they don't want to
execute the function to know it...
History
Date User Action Args
2008年02月07日 16:10:50amaury.forgeotdarcsetspambayes_score: 0.0164158 -> 0.016415803
recipients: + amaury.forgeotdarc, christian.heimes, gpolo
2008年02月07日 16:10:50amaury.forgeotdarcsetspambayes_score: 0.0164158 -> 0.0164158
messageid: <1202400650.21.0.696166986672.issue1916@psf.upfronthosting.co.za>
2008年02月07日 16:10:48amaury.forgeotdarclinkissue1916 messages
2008年02月07日 16:10:48amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /