On Dec 13, 2009, at 11:11 PM, Stefan Behnel wrote:

> Robert Bradshaw, 13.12.2009 09:40:
>> On Dec 12, 2009, at 11:29 PM, Dan Stromberg wrote:
>>
>>> How close is cython (0.12 and trunk or whatever cython calls  
>>> trunk, or
>>> the cython-closures repository?) to supporting generators?
>>
>> It's getting closer. Actually, Craig Citro made some progress on
>> stress-testing it last week (he's been looking at doing this for a
>> while, but has been very busy with teaching this last quarter...),  
>> and
>> if all goes well closures should be merged in, otherwise we'll at
>> least know where we stand.
>
> Is he working on extending the test suite, or is he testing with his  
> own code?

Both. One thing he added was the ability to put def functions inside  
if statements, etc. (Basically a parsing, rather than code generation,  
issue).

> Extending the test corpus would really be helpful here. For now,  
> there are
> only a couple of simple tests but we are far from any reasonable  
> coverage,
> and close to zero when it comes to corner cases.

A long time ago he wrote a scheme compiler, and has a huge battery of  
closure-related tests he used for that. He wrote a translator to  
represent them in Python which should provide good coverage of  
standard and corner-case behavior.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to