Question on ABC classes
Marco Sulla
Marco.Sulla.Python at gmail.com
Thu Oct 22 16:09:40 EDT 2020
On Thu, 22 Oct 2020 at 18:31, Julio Di Egidio <julio at diegidio.name> wrote:
> why
> only if there are abstract methods defined in an ABC
> class is instantiation disallowed?
>
Not sure because I never tried or needed, but if no @abstractsomething in A
is defined and your B class is a subclass of A, B should be an abstract
class, not a concrete class.
More information about the Python-list
mailing list