Login
Roast topics
Find topics
Find it!
From:
www.pythonmorsels.com
(Uncensored)
subscribe
Duck Typing in Python - Python Morsels
https://www.pythonmorsels.com/duck-typing/
links
backlinks
Roast topics
Find topics
Roast it!
In Python we care about the behavior of an object more than the type of an object. We say, "if it looks like a duck and walks like a duck, it's a duck." This idea is called duck typing.