Is duck-typing misnamed?

Larry Martell larry.martell at gmail.com
Sat Aug 27 11:54:18 EDT 2016


On Fri, Aug 26, 2016 at 7:58 PM, ROGER GRAYDON CHRISTMAN <dvl at psu.edu> wrote:
> "If it walks like a duck, quacks like a duck,... "
>
> so there is indeed precedence for this so-called 'duck typing'
>
>
> but wouldn't it be more Pythonic to call this 'witch typing'?
>
> "How do you know she is a witch?"
>
> "She looks like one."
>
> etc.
>
>
> I do grant that ultimately, the duck does come into play, since the witch
> weighs the same as a duck.

Great idea, I love it. Now go and change your armor.



More information about the Python-list mailing list