Message 306433 - Python tracker

Message306433

Author Alex Corcoles
Recipients Alex Corcoles
Date 2017-11-17.12:35:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510922155.04.0.213398074469.issue32060@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
>>> import abc
>>> class Foo(abc.ABC):
...     pass
... 
>>> Foo()
<__main__.Foo object at 0x7f253e6dcb38>

I think declaring a class as ABC without declaring any abstract method is an error.

I've tried searching if this was already discussed, but did not find it. Maybe it is related to https://bugs.python.org/issue9731

Cheers,

Álex
History
Date User Action Args
2017-11-17 12:35:55Alex Corcolessetrecipients: + Alex Corcoles
2017-11-17 12:35:55Alex Corcolessetmessageid: <1510922155.04.0.213398074469.issue32060@psf.upfronthosting.co.za>
2017-11-17 12:35:54Alex Corcoleslinkissue32060 messages
2017-11-17 12:35:54Alex Corcolescreate