Python interfaces: abandon ABC and switch to Protocols

I used a standard Python library abc to define interfaces for the last 10 years of my career. But recently, I found that relatively new Python Protocols are way nicer. People find uses for both technologies. But I want to convince you to completely jump ships and start using them instead of more traditional techniques.

Python interfaces: what can you use?

Python is somewhat different from other popular languages since there are no interfaces on a language level. But there are several library implementations. The abc package is probably the most popular:

Read More

Tags: abandon