Skip to main content
8 events
when toggle format what by license comment
Aug 6, 2015 at 4:10 vote accept Robbie
Aug 4, 2015 at 4:38 comment added jpmc26 @Robbie In Python, you usually just attempt to call the method, and if someone messed up enough to pass something that doesn't have it, you get a TypeError. This is known as Duck Typing.
Aug 4, 2015 at 2:07 vote accept Robbie
Aug 4, 2015 at 4:43
Aug 4, 2015 at 1:48 comment added Robbie In fact, I'm going to just take this answer as its correct for other languages.
Aug 3, 2015 at 23:45 comment added Rob @Robbie I think you're right that python doesn't have interfaces. Interfaces don't really make sense in dynamically typed languages anyway.
Aug 3, 2015 at 22:59 history edited Mike CC BY-SA 3.0
added 1 character in body
Aug 3, 2015 at 22:42 comment added Robbie I didn't realize python doesn't support interfaces, what would be the python equivalent to this? I will update my question accordingly.
Aug 3, 2015 at 21:47 history answered Mike CC BY-SA 3.0