|Issue 133:||generators cannot be exported from extension modules|
|2 people starred this issue and may be notified of changes.||Back to list|
To reproduce, create and compile a simple extension module: def int_gen(i): yield i+1 def test_f(i): return int_gen(i).next() if __name__=='__main__': print test_f(3) What is the expected output? What do you see instead? You can import from the module test_f, but not int_gen.
Mar 9, 2011
thanks for reporting! I guess generators are explicitly disabled, because I wasn't sure how to implement them. I'm still not sure, but will have a look at this for 0.8..
May 25, 2011
thanks again for reporting this. I'm afraid a solution didn't make it into 0.8, but I will get to it at some point.
Jun 25, 2011
Issue 140 has been merged into this issue.
Jul 24, 2011
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
|► Sign in to add a comment|