Vladimir

46%
Flag icon
sometimes you see a protocol defined near the function that uses it—that is, defined in “client code” instead of being defined in a library. This is makes it easy to create new types to call that function, which is good for extensibility and testing with mocks.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview