← Back to context

Comment by jerjerjer

3 years ago

> That made me wonder if ABCs could “hijack” a pattern match

What's the hijack there?

I'm really not sure what's the author's point is. He writes the code and get's expected results back.

Based on other comments here, it seems like some people don't know the purpose of ABCs and are assuming they're more like a class definition for classes that have to be directly inherited.

  • I've been programming python for years, consider myself extremely knowledgeable in it, and...uhh... yeah TIL I've been using ABCs wrong.