3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00

Small fix in wrap_generator

This commit is contained in:
Michel Ferrero 2014-06-03 15:08:24 +02:00
parent fa06eaf3ae
commit 8c75aa6373

View File

@ -498,7 +498,7 @@ class class_ :
raise
self.pure_python_methods[rename or name] = pure_pyfunction_from_module(name = name, module = module), 'module', process_doc(doc)
elif callable(f) :
assert name == None
assert rename == None
self.hidden_python_function[f.__name__] = f
self.pure_python_methods[f.__name__] = f.__name__, 'inline', process_doc(f.__doc__)
else : raise ValueError, "argument f must be callable or a string"
@ -692,9 +692,9 @@ class module_ :
l = f.readline()[3:] # // strip "// "
self._wrapped_types += eval(l)
self.add_include(hppfile)
print "Loading triqs wrapped module %s"%modulename
print " ... found C++ header file %s"%hppfile
print " ... found wrapped types %s"%l
#print "Loading triqs wrapped module %s"%modulename
#print " ... found C++ header file %s"%hppfile
#print " ... found wrapped types %s"%l
class _enum :
def __init__(self, c_name, values, c_namespace, doc) :