summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/wrapper_base.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-10-05 07:23:48 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-10-05 07:23:48 +0000
commitc6aa52df0532547ba1e046fbd65b8d0524e89c16 (patch)
treeca36e8e03e7077e71c3ecc34442d0e609ad36f89 /numpy/f2py/lib/wrapper_base.py
parent3a6607f4ccd87d54c8be6387cf6ee568e4bf77c0 (diff)
downloadnumpy-c6aa52df0532547ba1e046fbd65b8d0524e89c16.tar.gz
F2PY G3: started subprogram support addition.
Diffstat (limited to 'numpy/f2py/lib/wrapper_base.py')
-rw-r--r--numpy/f2py/lib/wrapper_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/f2py/lib/wrapper_base.py b/numpy/f2py/lib/wrapper_base.py
index 234154142..7491d37f7 100644
--- a/numpy/f2py/lib/wrapper_base.py
+++ b/numpy/f2py/lib/wrapper_base.py
@@ -2,6 +2,7 @@
import os
import sys
import re
+
__all__ = ['WrapperBase','WrapperCPPMacro','WrapperCCode']
class WrapperBase:
@@ -102,6 +103,12 @@ class WrapperBase:
d[name] = str(attrs).replace('\n','\n'+tab)
return template % d
+ def apply_templates(self, child):
+ for n in parent.list_names:
+ l = getattr(parent,n + '_list')
+ l.append(child.apply_attributes(getattr(child, n+'_template','')))
+ return
+
class WrapperCPPMacro(WrapperBase):
"""
CPP macros