[issue9533] metaclass can't derive from ABC

2010-10-02 Thread Benjamin Peterson
Benjamin Peterson 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 ___ Python tra

[issue9533] metaclass can't derive from ABC

2010-10-02 Thread R. David Murray
R. David Murray 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 __

[issue9533] metaclass can't derive from ABC

2010-10-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9533] metaclass can't derive from ABC

2010-10-01 Thread Daniel Urban
Daniel Urban 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__ attribute of every base clas

[issue9533] metaclass can't derive from ABC

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9533] metaclass can't derive from ABC

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy 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 Daniel Urban
Changes by Daniel Urban : -- nosy: +durban type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9533] metaclass can't derive from ABC

2010-08-06 Thread Roald de Vries
New submission from Roald de Vries : Exception raised:: Traceback (most recent call last): File "bug.py", line 5, in 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 getat