Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Metaprogramming/Python/metaprogramming-1.py
Normal file
9
Task/Metaprogramming/Python/metaprogramming-1.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from macropy.core.macros import *
|
||||
from macropy.core.quotes import macros, q, ast, u
|
||||
|
||||
macros = Macros()
|
||||
|
||||
@macros.expr
|
||||
def expand(tree, **kw):
|
||||
addition = 10
|
||||
return q[lambda x: x * ast[tree] + u[addition]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue