Commit a77c750e authored by Stefan Behnel's avatar Stefan Behnel

ep2008: clarification on closures

parent 54db2a85
...@@ -214,9 +214,7 @@ Python 2 feature support ...@@ -214,9 +214,7 @@ Python 2 feature support
* ``with`` statement * ``with`` statement
* closures * closures (i.e. local classes and functions) are close!
* support for local classes and functions is close!
Speed Speed
...@@ -311,19 +309,19 @@ Calling C functions ...@@ -311,19 +309,19 @@ Calling C functions
return PyUnicode_DecodeASCII(s, size, NULL) return PyUnicode_DecodeASCII(s, size, NULL)
Cutting-edge features Features in work
===================== ================
* Dynamic classes and functions with closures * Dynamic classes and functions with closures
.. sourcecode:: python .. sourcecode:: python
def myfunction(a,b): def factory(a,b):
def closure_function(c): def closure_function(c):
return a+b+c return a+b+c
return closure_function return closure_function
* Native support for new ``buffer`` protocol this summer * Native support for new ``buffer`` protocol
* part of NumPy integration by Dag Seljebotn * part of NumPy integration by Dag Seljebotn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment