[issue24235] ABCs don't fail metaclass instantiation

2019-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing as a duplicate as Luiz suggested. -- nosy: +cheryl.sabella resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing built-in types ___

[issue24235] ABCs don't fail metaclass instantiation

2016-05-24 Thread Luiz Poleto
Luiz Poleto added the comment: This seems to be related to issues #5996 and #26306. -- nosy: +luiz.poleto ___ Python tracker ___ ___ P

[issue24235] ABCs don't fail metaclass instantiation

2015-05-18 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: If a subclass has abstract methods, it fails to instantiate... unless it's a metaclass, and then it succeeds. >>> import abc >>> class A(metaclass=abc.ABCMeta): ... @abc.abstractmethod ... def foo(self): pass ... >>> class B(A): pass ... >>> B() T