pmacs3/code_examples/python-overrides.py

14 lines
384 B
Python

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
#@@: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"