From fc3d56d8aa16a98507cc1b6af28445b5eb2c96b2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 5 Dec 2010 17:24:28 +0100 Subject: [PATCH] comment on generator expressions --- src/userguide/limitations.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.26.2