Vladimir

45%
Flag icon
Very often at runtime, duck typing is the best approach for type checking: instead of calling isinstance or hasattr, just try the operations you need to do on the object, and handle exceptions as needed.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview