En Thu, 05 Aug 2010 10:46:29 -0300, Roald de Vries <downa...@gmail.com>
escribió:
I'm trying to create a metaclass that keeps track of its objects, and
implement this as a collections.MutableMapping. That is, something like
this:
class type2(type, MutableMapping):
...
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/abc.pyc in __new__(mcls, name, bases, namespace)
83 if getattr(value, "__isabstractmethod__",
False))
84 for base in bases:
---> 85 for name in getattr(base, "__abstractmethods__",
set()):
86 value = getattr(cls, name, None)
87 if getattr(value, "__isabstractmethod__",
False):
TypeError: Error when calling the metaclass bases
'getset_descriptor' object is not iterable
Anybody knows why? Every type is just an object, isn't it?
This may be an oversight in ABCMeta implementation - please file a bug
report at http://bugs.python.org/
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list