3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 14:23:38 +01:00
dft_tools/pytriqs/wrap_test/aux.py
Olivier Parcollet 5105e04ac7 Add new wrapper generator
- with pytriqs.wrap_test as an example.
2014-05-11 21:47:46 +02:00

22 lines
427 B
Python

def ffg( *args, **kw) :
""" my doc of ffg in module """
print "calling ffg, with :"
print args
print kw
#return [2*x for x in args], kw
return tuple(2*x for x in args), kw
def post1(res) :
return [res]
def pure_py1(self, i) :
"""
doc of pure_py1 : a nice funciton ,...
"""
i = i/2
print " I am in pure python method pure_py1 %s "%i
return ["pure_py1 return list"]