diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-08-05 21:13:49 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-08-05 21:13:49 +0000 |
commit | c7f8d0d531e263969c80f861df1b3e41bff6683b (patch) | |
tree | b8d3a2a9da86e0843fc22c662e10ff96d9879d8f /numpy/f2py/lib/extgen/base.py | |
parent | 4196b728240d9225c38a6d630b5c117194c7577e (diff) | |
download | numpy-c7f8d0d531e263969c80f861df1b3e41bff6683b.tar.gz |
ExtGen: impl PObject* and C int support, minor improvements.
Diffstat (limited to 'numpy/f2py/lib/extgen/base.py')
-rw-r--r-- | numpy/f2py/lib/extgen/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/lib/extgen/base.py b/numpy/f2py/lib/extgen/base.py index 6efe042d0..62367b154 100644 --- a/numpy/f2py/lib/extgen/base.py +++ b/numpy/f2py/lib/extgen/base.py @@ -43,7 +43,7 @@ class Component(object): # XXX: rename Component to Component obj.parent = None obj.containers = {} # holds containers for named string lists obj.components = [] # holds pairs (<Component subclass instance>, <container name or None>) - obj.initialize(*args, **kws) # initialize from constructor arguments + obj = obj.initialize(*args, **kws) # initialize from constructor arguments return obj def initialize(self, *components, **options): @@ -52,7 +52,7 @@ class Component(object): # XXX: rename Component to Component """ # self.myattr = .. # map(self.add, components) - return + return self @property def provides(self): @@ -73,7 +73,7 @@ class Component(object): # XXX: rename Component to Component print >> sys.stderr, message def __repr__(self): - return '%s%s' % (self.__class__.__name__, `self.containers`) + return '%s(%s)' % (self.__class__.__name__, `self.containers`) def __getattr__(self, attr): if attr.startswith('container_'): # convenience feature |