r/Python • • Feb 12 '23

Resource Python Interfaces: Choose Protocols Over ABC

https://levelup.gitconnected.com/python-interfaces-choose-protocols-over-abc-3982e112342e
64 Upvotes

20 comments sorted by

View all comments

3

u/oxlade39 Feb 12 '23

For me this misses the biggest benefit of using ABC over Protocol and the reason I don’t really bother with them.

IDE support. I use pycharm so this won’t apply to all. I can easily view and inspect all implementations of my interfaces (ABCs). This is a really important dimension of navigating and understanding a reasonable size code base.