pmacs3/code_examples/python-overrides.py

14 lines
384 B
Python
Raw Permalink Normal View History

def do_junk(*args):
#@@:string:sql
s = "select * from foo where bar = 99;"
s = "select * from foo where bar = 99;"
#@@:string:xml
s = "<foo blah='3'>bar</foo>"
s = "<foo blah='3'>bar</foo>"
#@@:string:python
2008-03-16 02:16:41 -04:00
#@@:string.string:sql
s = "lambda x, y: 'select * from foo where x = %d and y = %d;' % x + y"
s = "lambda x, y: 'result: %d' % x + y"