<s> import autopath <EOL> from pypy . tool . sourcetools import compile_template <EOL> some_global = <NUM_LIT:5> <EOL> def test_template ( ) : <EOL> init_value = <NUM_LIT:50> <EOL> def template ( n ) : <EOL> args = [ '<STR_LIT>' % i for i in range ( n ) ] <EOL> yield '<STR_LIT>' % ( '<STR_LIT:U+002CU+0020>' . join ( args ) , ) <EOL> yield '<STR_LIT>' <EOL> for i in range ( n ) : <EOL> yield '<STR_LIT>' % i <EOL> yield '<STR_LIT>' <EOL> add = compile_template ( template ( <NUM_LIT:5> ) , '<STR_LIT>' ) <EOL> assert add ( <NUM_LIT> , <NUM_LIT:1000> , <NUM_LIT:100> , <NUM_LIT:10> , <NUM_LIT:1> ) == <NUM_LIT> </s>
