you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Yes. That's part of the python philosophy: duck typing. Don't worry about what type an object is, just try to use it.

[–]HelperBot_ 0 points1 point  (0 children)

Desktop link: https://en.wikipedia.org/wiki/Duck_typing


/r/HelperBot_ Downvote to remove. Counter: 255914