diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-08-06 13:07:03 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-08-06 13:07:03 +0000 |
commit | 9bee05389a14f3bbf8f59a10b2398c8a4a7232ca (patch) | |
tree | 3e80e84b33e29342e9de3fc90d3145faca16003d /numpy/f2py/lib/extgen/base.py | |
parent | 5d4824522b29ac83d08d208723cba56ece1d6ea5 (diff) | |
download | numpy-9bee05389a14f3bbf8f59a10b2398c8a4a7232ca.tar.gz |
Added numpy array and scalar support to PyCTypePython.
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 5bef4ba6d..61769af9d 100644 --- a/numpy/f2py/lib/extgen/base.py +++ b/numpy/f2py/lib/extgen/base.py @@ -54,6 +54,9 @@ class Component(object): # XXX: rename Component to Component # map(self.add, components) return self + def __repr__(self): + return '%s(%s)' % (self.__class__.__name__, ', '.join([repr(c) for (c,l) in self.components])) + @property def provides(self): """ @@ -72,9 +75,6 @@ class Component(object): # XXX: rename Component to Component def info(message): print >> sys.stderr, message - def __repr__(self): - return '%s(%s)' % (self.__class__.__name__, `self.containers`) - def __getattr__(self, attr): if attr.startswith('container_'): # convenience feature return self.get_container(attr[10:]) |