Skip to content Skip to sidebar Skip to footer
Showing posts with the label Duck Typing

How To Handle "duck Typing" In Python?

I usually want to keep my code as generic as possible. I'm currently writing a simple library a… Read more How To Handle "duck Typing" In Python?

Is This Duck-typing In Python?

Here is some Ruby code: class Duck def help puts 'Quaaaaaack!' end end class Perso… Read more Is This Duck-typing In Python?

Issubclass Of Abstract Base Class Sequence

This list shows what methods you need to implement for your class to be 'regarded' as Seque… Read more Issubclass Of Abstract Base Class Sequence