Open jkaberg opened 6 months ago
Since pyscript
is implemented as an interpreter, generator expressions and yield
are quite hard to implement. It's mentioned in the Language Limitations section of the docs.
A workaround is to put the generator oryield
code in a function with a @pyscript_compile
decorator. That will use native Python.
That said, any implementations would be most welcome!
I'm guessing someone hasn't come around to it, just parking this here for myself or if someone else has the time 😄