From: Stefan Behnel Date: Sun, 5 Dec 2010 16:24:28 +0000 (+0100) Subject: comment on generator expressions X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc3d56d8aa16a98507cc1b6af28445b5eb2c96b2;p=cython.git comment on generator expressions --- diff --git a/src/userguide/limitations.rst b/src/userguide/limitations.rst index 3fede2c5..1f0f599d 100644 --- a/src/userguide/limitations.rst +++ b/src/userguide/limitations.rst @@ -14,10 +14,16 @@ Python. This page lists the things that work in Python but not in Cython. As Cython matures, the items in this list should go away. -Generators ------------ +Generators and generator expressions +------------------------------------- -Using the yield keywords. (work in progress) This relies on functional closures +The yield keyword is not yet supported. This is work in progress. + +Since Cython 0.13, some generator expressions are supported when they +can be transformed into inlined loops in combination with builtins, +e.g. ``sum(x*2 for x in seq)``. As of 0.14, the supported builtins +are ``list()``, ``set()``, ``dict()``, ``sum()``, ``any()``, +``all()``, ``sorted()``. Other Current Limitations