Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comment on generator expressions

  • Loading branch information...
commit fc3d56d8aa16a98507cc1b6af28445b5eb2c96b2 1 parent a8f516d
Stefan Behnel authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/userguide/limitations.rst
12 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 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
Please sign in to comment.
Something went wrong with that request. Please try again.