3 ms·
Or you can use an ABC with no implementation logic. I don't agree with the author quickly dismissing them at the beginning. They seem like a relevant solution t
by harpiaharpyja 6y ago
Or you can use an ABC with no implementation logic. I don't agree with the author quickly dismissing them at the beginning. They seem like a relevant solution to when you want nominal typing instead of structural.
Yes, they can contain implementation logic. They don't have to though.
- O5vYtytb 6y agoFor me, not having the metaclass overhead of abc is a benefit of protocols. Unfortunately you can't mix metaclass types.