Is duck-typing misnamed?

Ned Batchelder ned at nedbatchelder.com
Sat Aug 27 06:35:15 EDT 2016


On Saturday, August 27, 2016 at 5:50:30 AM UTC-4, ROGER GRAYDON CHRISTMAN 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.

+1 :)

--Ned.



More information about the Python-list mailing list