Vladimir

32%
Flag icon
A notable quality of the singledispatch mechanism is that you can register specialized functions anywhere in the system, in any module. If you later add a module with a new user-defined type, you can easily provide a new custom function to handle that type. And you can write custom functions for classes that you did not write and can’t change.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview