News for hackers. Stuff that matters.
Re:Pony ORM - Use Pure Python to Speak to Your Data by luckystarr on Friday April 19, 2013 @03:35AM (#5575385)
How does it translate generator expressions? Some kind of byte-code magic?
Re:Pony ORM - Use Pure Python to Speak to Your Data by yangyang on Friday April 19, 2013 @03:54AM (#5575428)
It appears to build an AST from the code object on the generator, and then translate to SQL.

https://github.com/ponyorm/pony/blob/orm/pony/orm/decompilin...

https://github.com/ponyorm/pony/blob/orm/pony/orm/asttransla...

Re:Pony ORM - Use Pure Python to Speak to Your Data by amalashkevich on Friday April 19, 2013 @07:22AM (#5575987)
Pony gets the code object from a generator, decompiles it to a Python AST and then translates it to a SQL abstract tree.