APrioriInvestments / typed_python

An llvm-based framework for generating and calling into high-performance native code from Python.
Apache License 2.0
197 stars 8 forks source link

If you decorate a class __iter__ with Generator(T) you can't return to it from the interpreter. #416

Closed braxtonmckee closed 1 year ago

braxtonmckee commented 1 year ago

We don't know how to convert a regular python generator to a Generator(T) automatically. As a result, if you have a class and use inheritance, you are forced to either use object or use Generator(T) and compile. No middle ground.