[issue46814] Documentation for constructing abstract base classes is misleading

2022-02-28 Thread Guido van Rossum


Guido van Rossum  added the comment:

Raymond, I agree that this is going too far. I believe the OP has taken the 
position that "abstract" has only one meaning and it is defined by 
inspect.isabstract(). I disagree with this.

An ABC is an ABC is an ABC, and it provides certain functionality through the 
ABCMeta metaclass: (1) forbid instantiation when at least one 
@abstractmethod-decorated method exist that isn't overridden, and (2) virtual 
subclasses.

Calling out that a class with metaclass=ABCMeta is only abstract when it has at 
least one @abstractmethod left, over and over, is not helpful.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46814] Documentation for constructing abstract base classes is misleading

2022-02-21 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

FWIW, I’m only -0 on this.   It is also perfectly reasonable to say that a 
class is abstract if and only if there is at least one remaining abstract 
method.  After 15 years though, I’m inclined to say that the status quo wins.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46814] Documentation for constructing abstract base classes is misleading

2022-02-21 Thread Alex Waygood


Change by Alex Waygood :


--
title: Documentation for constructin abstract base classes is misleading -> 
Documentation for constructing abstract base classes is misleading

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com