News for hackers. Stuff that matters.
Re:Crimes with Python's pattern matching by Izkata on Tuesday August 02, 2022 @08:47AM (#32317808)
> but in general it's probably not most people's expectation that you can define a class, make sure it doesn't subclass any ABCs, but then still have it "match" an ABC.

Abstract Base Classes were an attempt to formalize python's duck typing. Matching things that don't inherit from them is their whole purpose.

There are no comments on this comment yet.