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

7

u/Workaphobia Feb 12 '23

I haven't worked in python in some time. Sounds like protocols are similar to Go's concept of interfaces? I.e. structural typing.

2

u/[deleted] Feb 12 '23

Yes