[New-bugs-announce] [issue9533] metaclass can't derive from ABC

Roald de Vries report at bugs.python.org
Fri Aug 6 12:33:39 CEST 2010

New submission from Roald de Vries <python at roalddevries.nl>:

Exception raised::

  Traceback (most recent call last):
    File "bug.py", line 5, in <module>
      class derived(type, Sized):
    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/abc.py", line 85, in __new__
      for name in getattr(base, "__abstractmethods__", set()):
  TypeError: Error when calling the metaclass bases
      'getset_descriptor' object is not iterable

files: bug.py
messages: 113094
nosy: roalddevries
priority: normal
severity: normal
status: open
title: metaclass can't derive from ABC
type: compile error
versions: Python 2.6
Added file: http://bugs.python.org/file18414/bug.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list