On Tue, Jul 27, 2010 at 7:17 PM, Bruce Frederiksen <email@example.com> wrote:
The one catch is that it is often nice to be able to refer to Python variables (at least; or perhaps full expressions) within the mini-language. The db_cursor.execute is an example, and putting the placeholders in the SQL syntax with arguments later works, but gets tedious. To be able to include Python expressions directly within the mini-language, the library implementing the new syntax would have to be able to translate the new syntax into Python and have it spliced into the code where it was used. Something like an intelligent macro expansion. This means that the library's translation code has to be called from the Python compiler.
I'm not familiar enough with the compiler to know how crazy this is. Mython tries to do something similar.