[issue9533] metaclass can't derive from ABC

2010-10-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9533 ___ ___ Python-bugs-list

[issue9533] metaclass can't derive from ABC

2010-10-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Does the fix for issue 10006 affect this? (I imagine that question is why Antoine made Benjamin nosy on this issue). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue9533] metaclass can't derive from ABC

2010-10-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You can now create metaclass abcs. However, having __abstractmethods__ does not prevent instance creation. This is a problem with a builtins, though. -- resolution: - fixed status: open - closed

[issue9533] metaclass can't derive from ABC

2010-10-01 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: If we create a new class, which is a metaclass, and also inherits an ABC, we create a new instance of ABCMeta. When ABCMeta.__new__ creates the __abstractmethods__ attribute of the new class, it iterates over the __abstractmethods__

[issue9533] metaclass can't derive from ABC

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9533 ___ ___ Python-bugs-list

[issue9533] metaclass can't derive from ABC

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: +- same traceback in 3.1 Since ABCmeta is not used (by name) its import is not needed. I have no opinion on whether this should work. -- nosy: +terry.reedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue9533] metaclass can't derive from ABC

2010-08-06 Thread Roald de Vries
New submission from Roald de Vries pyt...@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

[issue9533] metaclass can't derive from ABC

2010-08-06 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9533 ___